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

Function test_isin_string_array

pandas/tests/arrays/string_/test_string.py:553–562  ·  view source on GitHub ↗
(dtype, dtype2)

Source from the content-addressed store, hash-verified

551
552
553def test_isin_string_array(dtype, dtype2):
554 s = pd.Series(["a", "b", None], dtype=dtype)
555
556 result = s.isin(pd.array(["a", "c"], dtype=dtype2))
557 expected = pd.Series([True, False, False])
558 tm.assert_series_equal(result, expected)
559
560 result = s.isin(pd.array(["a", None], dtype=dtype2))
561 expected = pd.Series([True, False, True])
562 tm.assert_series_equal(result, expected)
563
564
565def test_isin_arrow_string_array(dtype):

Callers

nothing calls this directly

Calls 2

isinMethod · 0.95
arrayMethod · 0.45

Tested by

no test coverage detected