Expand description
Reductions along named axes, cumulative operations and differences.
Nulls are skipped, like the NumPy nan* functions. A group without
valid values gives 0 for sums, 1 for products, false for any,
true for all, 0 for counts and null for all other reductions.
Floats order NaN above all numbers, like Arrow, so max can return NaN.
Use nan_to_null to treat NaN as missing.
Enums§
- Reduction
- A reduction for
reduceandgroupby_reduce.
Functions§
- all
trueif all values aretrue(or non-zero), likenumpy.all.- any
trueif any value istrue(or non-zero), likenumpy.any.- argmax
- Index of the first maximum, like
numpy.nanargmax. - argmin
- Index of the first minimum, like
numpy.nanargmin. - count
- Number of non-null values, like
xarray.DataArray.count. - cummax
- Running maximum along
dim, likenumpy.maximum.accumulate. Null positions stay null. - cummin
- Running minimum along
dim, likenumpy.minimum.accumulate. Null positions stay null. - cumprod
- Cumulative product along
dim, likenumpy.nancumprod. Null positions stay null. - cumsum
- Cumulative sum along
dim, likenumpy.nancumsum. Null positions stay null. - diff
- The
n-th discrete difference alongdim, likenumpy.diff. - max
- Maximum, like
numpy.nanmax. - mean
- Mean, like
numpy.nanmean. Integers giveFloat64. - median
- Median, like
numpy.nanmedian. - min
- Minimum, like
numpy.nanmin. - prod
- Product, like
numpy.nanprod. Integers multiply asInt64orUInt64, with wrapping. - ptp
- Range of values (
max - min), likenumpy.ptp. - quantile
- Quantile with linear interpolation, like
numpy.nanquantile. - reduce
- Reduce
aover the named axes.Nonereduces all axes to a scalar. - std
- Standard deviation, like
numpy.nanstd. - sum
- Sum, like
numpy.nansum. Integers sum asInt64orUInt64, with wrapping. - var
- Variance, like
numpy.nanvar.