cf.Data.variance

Data.variance(axes=None, squeeze=False, weights=None, mtol=1, ddof=0, inplace=False, i=False, _preserve_partitions=False)[source]

Collapse axes with their weighted variance.

The units of the returned array are the square of the units of the array.

See also

max, min, mean, mid_range, range, sum, sd, stats

Parameters

axes : (sequence of) int, optional

squeeze : bool, optional

weights :

inplace: bool, optional

If True then do the operation in-place and return None.

i: deprecated at version 3.0.0

Use inplace parameter instead.

Returns
Data or None

The collapsed array.

Examples: