bundles / scipy 1.17.1 / scipy / stats / _mstats_basic / describe
function
scipy.stats._mstats_basic:describe
Signature
def describe ( a , axis = 0 , ddof = 0 , bias = True ) Summary
Computes several descriptive statistics of the passed array.
Parameters
a: array_likeData array
axis: int or None, optionalAxis along which to calculate statistics. Default 0. If None, compute over the whole array
a.ddof: int, optionaldegree of freedom (default 0); note that default ddof is different from the same routine in stats.describe
bias: bool, optionalIf False, then the skewness and kurtosis calculations are corrected for statistical bias.
Returns
nobs: int(size of the data (discarding missing values)
minmax: (int, int)min, max
mean: floatarithmetic mean
variance: floatunbiased variance
skewness: floatbiased skewness
kurtosis: floatbiased kurtosis
Examples
import numpy as np from scipy.stats.mstats import describe ma = np.ma.array(range(6), mask=[0, 0, 0, 1, 1, 1])✓
describe(ma)
✗Aliases
-
scipy.stats._mstats_basic.describe