10-python-pandas-statistical
10. Pandas高级教程之:统计方法
简介
变动百分百
ser = pd.Series(np.random.randn(8))
ser.pct_change()
Out[45]:
0 NaN
1 -1.264716
2 4.125006
3 -1.159092
4 -0.091292
5 4.837752
6 -1.182146
7 -8.721482
dtype: float64
ser
Out[46]:
0 -0.950515
1 0.251617
2 1.289537
3 -0.205155
4 -0.186426
5 -1.088310
6 0.198231
7 -1.530635
dtype: float64Covariance协方差
Correlation相关系数
方法名
描述
rank等级
最后更新于
这有帮助吗?