Idea: adding `ndarray.isin` for consistency with pandas

`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.

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 <mghenis@gmail.com> wrote:

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 <mghenis@gmail.com> wrote:
participants (2)
-
Max Ghenis
-
Stephan Hoyer