diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index 54949d35904cfc..a3cc9378f7bebb 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -30,7 +30,7 @@ Bug fixes - Bug in :meth:`Series.str.startswith` and :meth:`Series.str.endswith` with ``category`` dtype not propagating ``na`` parameter (:issue:`36241`) - Bug in :class:`Series` constructor where integer overflow would occur for sufficiently large scalar inputs when an index was provided (:issue:`36291`) - Bug in :meth:`isin()` when using NaN and a row length above 1,000,000 (:issue:`22205`) -- Bug in :meth:`Series.isin` when using ``NaN`` and a row length above 1,000,000 (:issue:`22205`) +- Bug in :meth:`Series.isin` and :meth:`DataFrame.isin` when using ``NaN`` and a row length above 1,000,000 (:issue:`22205`) .. --------------------------------------------------------------------------- diff --git a/pandas/tests/test_algos.py b/pandas/tests/test_algos.py index acc9bb21ad41cc..deedac49b85910 100644 --- a/pandas/tests/test_algos.py +++ b/pandas/tests/test_algos.py @@ -840,16 +840,16 @@ def test_same_nan_is_in(self): result = algos.isin(comps, values) tm.assert_numpy_array_equal(expected, result) - # issue:`22205` def test_same_nan_is_in_large(self): + # issue:`22205` s = np.tile(1.0, 1_000_001) s[0] = np.nan result = algos.isin(s, [np.nan, 1]) expected = np.ones(len(s), dtype=bool) tm.assert_numpy_array_equal(result, expected) - # issue:`#25395` def test_same_nan_is_in_large_series(self): + # issue:`#25395` s = np.tile(1.0, 1_000_001) series = pd.Series(s) s[0] = np.nan