larray.Array.describe

Array.describe(*args, percentiles=None) Array[source]

Descriptive summary statistics, excluding NaN values.

By default, it includes the number of non-NaN values, the mean, standard deviation, minimum, maximum and the 25, 50 and 75 percentiles.

Parameters
*argsint or str or Axis or Group or any combination of those, optional

Axes or groups along which to compute the aggregates. Defaults to aggregate over the whole array.

percentilesarray-like, optional.

List of integer percentiles to include. Defaults to [25, 50, 75].

Returns
Array

Examples

>>> arr = Array([0, 6, 2, 5, 4, 3, 1, 3], 'year=2013..2020')
>>> arr
year  2013  2014  2015  2016  2017  2018  2019  2020
         0     6     2     5     4     3     1     3
>>> arr.describe()
statistic  count  mean  std  min   25%  50%   75%  max
             8.0   3.0  2.0  0.0  1.75  3.0  4.25  6.0
>>> arr.describe(percentiles=[50, 90])
statistic  count  mean  std  min  50%  90%  max
             8.0   3.0  2.0  0.0  3.0  5.3  6.0