mwaskom / seaborn

Statistical data visualization in Python
https://seaborn.pydata.org
BSD 3-Clause "New" or "Revised" License
12.18k stars 1.89k forks source link

Replacement of obsolete np.in1d with np.isin. #3715

Open quant12345 opened 1 week ago

quant12345 commented 1 week ago

This PR removes the warning:

tests/test_categorical.py: 35 warnings
  /home/runner/work/seaborn/seaborn/tests/test_categorical.py:1209: DeprecationWarning: `in1d` is deprecated. Use `np.isin` instead.
    assert np.in1d(

Replacement of obsolete np.in1d with np.isin.