- iarray.nanvar(a: IArray, /, *, axis: Optional[Union[int, tuple]] = None, correction: Union[int, float] = 0.0, cfg: Optional[Config] = None, **kwargs)#
Compute the variance along the specified axis ignoring NaNs. The variance is computed for the flattened array by default, otherwise over the specified axis.
axis¶ (None, int, tuple of ints, optional) – Axis or axes along which the reduction is performed. The default (axis = None) is perform the reduction over all dimensions of the input array. If this is a tuple of ints, a reduction is performed on multiple axes, instead of a single axis or all the axes as default.
correction¶ (int or float) – Degrees of freedom adjustment. Default is 0.
var – Variance of a. The result is an array of dimension a.ndim - len(axis). The dtype is always the dtype of
- Return type