cf.Data.var

Data.var(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.

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 the inplace parameter instead.

Returns
Data or None

The collapsed array.

Examples: