NumPy 统计方法

https://docs.scipy.org/doc/numpy/reference/routines.statistics.html

排序统计

方法描述
amin(a[, axis, out, keepdims])返回最小值
amax(a[, axis, out, keepdims])返回最大值
nanmin(a[, axis, out, keepdims])返回最小值,忽略空值
nanmax(a[, axis, out, keepdims])返回最大值忽略空值
ptp(a[, axis, out])max-min 数组的范围
percentile(a, q[, axis, out, …])百分比计算
nanpercentile(a, q[, axis, out, …])百分比计算,并忽略空值

平均值和方差

方法描述
median(a[, axis, out, overwrite_input, keepdims])中位数
average(a[, axis, weights, returned])权重平均数
mean(a[, axis, dtype, out, keepdims])算数平均数
std(a[, axis, dtype, out, ddof, keepdims])标准差
var(a[, axis, dtype, out, ddof, keepdims])方差
nanmedian(a[, axis, out, overwrite_input, …])中位数,并忽略空值
nanmean(a[, axis, dtype, out, keepdims])算数平均数,忽略空值
nanstd(a[, axis, dtype, out, ddof, keepdims])标准差,忽略空值
nanvar(a[, axis, dtype, out, ddof, keepdims])方差,忽略空值

相关性

方法描述
corrcoef(x[, y, rowvar, bias, ddof])返回Pearson product-moment correlation 系数
correlate(a, v[, mode])Cross-correlation of two 1-dimensional sequences.
cov(m[, y, rowvar, bias, ddof, fweights, …])Estimate a covariance matrix, given data and weights.

直方图

方法描述
histogram(a[, bins, range, normed, weights, …])Compute the histogram of a set of data.
histogram2d(x, y[, bins, range, normed, weights])Compute the bi-dimensional histogram of two data samples.
histogramdd(sample[, bins, range, normed, …])Compute the multidimensional histogram of some data.
bincount(x[, weights, minlength])Count number of occurrences of each value in array of non-negative ints.
digitize(x, bins[, right])Return the indices of the bins to which each value in input array belongs.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值