Back to Numerical Arrays (NumPy)
np.nanvar
Compute the variance along the specified axis, while ignoring NaNs.
Syntax
np.nanvar(a, axis?, ddof?, keepdims?, dtype?)
Description
Compute the variance along the specified axis, while ignoring NaNs.
Parameters
| Name | Description |
|---|---|
| a | - Array containing numbers |
| axis(optional) | - Axis or axes along which the variance is computed (null = all elements) |
| ddof(optional) | - Delta Degrees of Freedom (divisor is N - ddof) |
| keepdims(optional) | - If true, reduced axes are left with size one |
| dtype(optional) | - Type to use in computing the variance |
Returns
Promise<NDArray | number>