bundles / numpy 2.4.3 / numpy / lib / _nanfunctions_impl / _nan_mask
function
numpy.lib._nanfunctions_impl:_nan_mask
Signature
def _nan_mask ( a , out = None ) Parameters
a: array-likeInput array with at least 1 dimension.
out: ndarray, optionalAlternate output array in which to place the result. The default is
None; if provided, it must have the same shape as the expected output and will prevent the allocation of a new array.
Returns
y: bool ndarray or TrueA bool array where
np.nanpositions are marked withFalseand other positions are marked withTrue. If the type ofais such that it can't possibly containnp.nan, returnsTrue.
Aliases
-
numpy.lib._nanfunctions_impl._nan_mask