nanreduce(x, method, identity=None, axis=None, keepdims=False, **kwargs)¶
NaNskipping reduction on this array. See the documentation on
COO) – The array to reduce.
numpy.ufunc) – The method to use for performing the reduction.
numpy.number) – The identity value for this reduction. Inferred from
methodif not given. Note that some
ufuncobjects don’t have this, so it may be necessary to give it.
Iterable[int]], optional) – The axes along which to perform the reduction. Uses all axes by default.
bool, optional) – Whether or not to keep the dimensions of the original array.
dict) – Any extra arguments to pass to the reduction operation.
The result of the reduction operation.
- Return type
ValueError – If reducing an all-zero axis would produce a nonzero result.
Similar method without