Re: Replace nan-ignoring functions with an ignore_nan flag to their normal counterparts
"Carlos Martin" <[email protected]>
| Newsgroups | gmane.comp.python.numeric.general |
|---|---|
| Message-ID | <[email protected]> |
Another, perhaps more radical, possibility is to remove special handling for nans from NumPy entirely. More precisely: 1. Add a `where` argument to all normal counterparts of nan-ignoring functions that are currently missing it (see https://github.com/numpy/numpy/issues/26336). 2. Add a short FAQ entry to the docs instructing users to use `where=~np.isnan(a)` to ignore nans. (Optional.) 3. Add a deprecation warning to the nan-ignoring functions. 4. Delete the nan-ignoring functions after an appropriate deprecation cycle. _______________________________________________ NumPy-Discussion mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/numpy-discussion.python.org Member address: [email protected]