代码均与pandas前面学习相连
统计所有变量的均值、方差、最值等
test_1.describe()
min max mean median var std 为常用的统计变量
test_1.max()
变量前加上id为索引含义
test_1.idxmax()
累计统计函数cumsum()
test_1["SO2"].cumsum()
test_1["SO2"].sort_index().cumsum().plot()
自定义函数计算 apply(lambda x : f(x) ) ,例如:
test_1.apply(lambda x : x.max()-x.min())