This is a pre-release version (latest). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy latest / numpy / lib / _nanfunctions_impl / _nan_mask

function

numpy.lib._nanfunctions_impl:_nan_mask

source: build-install/usr/lib/python3.14/site-packages/numpy/lib/_nanfunctions_impl.py :43

Signature

def   _nan_mask ( a out = None )

Parameters

a : array-like

Input array with at least 1 dimension.

out : ndarray, optional

Alternate 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 True

A bool array where np.nan positions are marked with False and other positions are marked with True. If the type of a is such that it can't possibly contain np.nan, returns True.

Aliases

  • numpy.lib._nanfunctions_impl._nan_mask