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()

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()

转载于:https://www.cnblogs.com/thechain/p/9252422.html