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: ndarrayArray to remove nans from
second_arr1d: ndarray or NoneA second array which will have the same positions removed as arr1d.
overwrite_input: boolTrue if
arr1dcan be modified in place
Returns
res: ndarrayArray with nan elements removed
second_res: ndarray or NoneSecond array with nan element positions of first array removed.
overwrite_input: boolTrue if res can be modified in place, given the constraint on the input
Aliases
-
numpy.lib._nanfunctions_impl._remove_nan_1d