Pandas 中有哪些描述统计函数

发布时间:2021-06-21 18:49:43 作者:Leah
来源:亿速云 阅读:203

本篇文章给大家分享的是有关 Pandas 中有哪些描述统计函数 ,小编觉得挺实用的,因此分享给大家学习,希望大家阅读完这篇文章后可以有所收获,话不多说,跟着小编一起来看看吧。

在进行统计描述时,pandas对三个数据对象的轴参数规定如下:
Series: 没有轴参数
DataFrame: “index” (axis=0, default), “columns” (axis=1)
Panel: “items” (axis=0), “major” (axis=1, default), “minor” (axis=2)
统计描述参数如下:

FunctionDescription描述
countNumber of non-null observations观测值的个数
sumSum of values求和
meanMean of values求平均值
madMean absolute deviation平均绝对方差
medianArithmetic median of values中位数
minMinimum最小值
maxMaximum最大值
modeMode众数
absAbsolute Value绝对值
prodProduct of values乘积
stdBessel-corrected sample standard deviation标准差
varUnbiased variance方差
semStandard error of the mean标准误
skewSample skewness (3rd moment)偏度系数
kurtSample kurtosis (4th moment)峰度
quantileSample quantile (value at %)分位数
cumsumCumulative sum累加
cumprodCumulative product累乘
cummaxCumulative maximum累最大值
cumminCumulative minimum累最小值
cov()covariance协方差
corr()correlation相关系数
rank()rank by values排名
pct_change()time change时间序列变化

以上就是 Pandas 中有哪些描述统计函数 ,小编相信有部分知识点可能是我们日常工作会见到或用到的。希望你能通过这篇文章学到更多知识。更多详情敬请关注亿速云行业资讯频道。

推荐阅读:
  1. agg函数与apply函数在pandas中有什么不同
  2. pandas数据分组和聚合操作方法

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

pandas

上一篇:C++11中 constexpr构造函数的作用是什么

下一篇:java中函数式接口的作用是什么

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》