读一组数据的理解
一组数据表达一个或多个含义
摘要
有损地提取数据特征的过程
基本统计(含排序)
分布/累计统计
数据特征
相关性,周期性等
数据挖掘(形成知识)
在指定轴上根据索引进行排序,默认升序
.sort_index(axis = 0, ascending = True)
#axis=0 0轴,纵轴,行
在指定轴上根据数值进行排序,默认升序
.sort_values(axis = 0, ascending = True)
Series.set_values(axis = 0, ascending = True)
DataFrame.sort_values(by, axis = 0, ascending = True)
#by: axis轴上的某个索引或索引列表
基本统计分析
.sum() #计算数据综合,按0轴计算
.count() #非NaN值的数量
.mean()
.median()
.var()
.std()
.min()
.max()
#自动索引
.argmin()
.argmax()
#自定义索引
.idxmin()
.idxmax()
针对0轴(各列)的统计汇总
.describe()
#Series
a.describe()
a.describe()['count']
a.describe()['max']
#DataFrame
b.describe() #0轴
b.describe().ix['max']
b.describe()[2]
网友评论