nanmean¶
-
sparse.
nanmean
(x, axis=None, keepdims=False, dtype=None, out=None)[source]¶ Performs a
NaN
skipping mean operation along the given axes. Uses all axes by default.- Parameters
x (SparseArray) – The array to perform the reduction on.
axis (Union[int, Iterable[int]], optional) – The axes along which to compute the mean. Uses all axes by default.
keepdims (bool, optional) – Whether or not to keep the dimensions of the original array.
dtype (numpy.dtype) – The data type of the output array.
- Returns
The reduced output sparse array.
- Return type
See also
COO.mean
Function without
NaN
skipping.numpy.nanmean()
Equivalent Numpy function.