MCPcopy
hub / github.com/pandas-dev/pandas / test_isin_empty

Method test_isin_empty

pandas/tests/series/methods/test_isin.py:100–106  ·  view source on GitHub ↗
(self, empty)

Source from the content-addressed store, hash-verified

98
99 @pytest.mark.parametrize("empty", [[], Series(dtype=object), np.array([])])
100 def test_isin_empty(self, empty):
101 # see GH#16991
102 s = Series(["a", "b"])
103 expected = Series([False, False])
104
105 result = s.isin(empty)
106 tm.assert_series_equal(expected, result)
107
108 def test_isin_read_only(self):
109 # https://github.com/pandas-dev/pandas/issues/37174

Callers

nothing calls this directly

Calls 2

isinMethod · 0.95
SeriesClass · 0.90

Tested by

no test coverage detected