import tushare as ts
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from scipy import stats
sh=ts.get_hist_data('sh')
stats.probplot(sh['close'],dist='norm',plot=plt)
plt.show()