Thanks for the suggestion.

It isn't a hard rule, but the ndarray namespace is already very large and
cluttered, so generally we have avoided adding new methods in recent years.
(This policy might be worth codifying in a NEP.)

On Mon, Oct 11, 2021 at 7:35 AM Max Ghenis <[email protected]> wrote:

> `numpy.isin` is equivalent to `pandas.{Series,DataFrame}.isin`. Adding
> `numpy.ndarray.isin` would produce consistency with `pandas` and save 4
> characters (`np.isin(x, y)` vs. `x.isin(y)`).
>
> I'm adding this idea here in conjunction with filing
> https://github.com/numpy/numpy/issues/20092 per the instructions.
> _______________________________________________
> 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]
>
_______________________________________________
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]

Reply via email to