标签:
Pandas 0.8.1:
import pandas as pd
a=pd.Series([0, 1, 3, 6])
a.mean(), a.std(), a.var()
a.values.mean(), a.values.std(), a.values.var()
I would expect both last lines to return the same result. However, the former returned:
(2.5, 2.6457513110645907, 7.0)
and the latter:
(2.5, 2.2912878474779199, 5.25)
标签:
原文地址:http://www.cnblogs.com/ligerleng/p/5484888.html