import numpy as np
from dascore.utils.array_api import can_nan_reduce
assert can_nan_reduce("mean", np.array([1.0, 2.0]))can_nan_reduce
can_nan_reduce(
name: str ,
array: Any ,
)-> ‘bool’
Return True if a nan-skipping reduction can be done in the array’s own namespace, rather than by numpy.
Parameters
| Parameter | Description |
|---|---|
| name |
The name of the reduction; see nan_reduce. |
| array | The array to reduce. |