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

bundles / numpy latest / numpy / lib / _nanfunctions_impl / _remove_nan_1d

function

numpy.lib._nanfunctions_impl:_remove_nan_1d

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

Signature

def   _remove_nan_1d ( arr1d second_arr1d = None overwrite_input = False )

Summary

Equivalent to arr1d[~arr1d.isnan()], but in a different order

Extended Summary

Presumably faster as it incurs fewer copies

Parameters

arr1d : ndarray

Array to remove nans from

second_arr1d : ndarray or None

A second array which will have the same positions removed as arr1d.

overwrite_input : bool

True if arr1d can be modified in place

Returns

res : ndarray

Array with nan elements removed

second_res : ndarray or None

Second array with nan element positions of first array removed.

overwrite_input : bool

True if res can be modified in place, given the constraint on the input

Aliases

  • numpy.lib._nanfunctions_impl._remove_nan_1d