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

Function test_extractall_lookarounds

pandas/tests/strings/test_extract.py:757–763  ·  view source on GitHub ↗
(any_string_dtype, pat, expected_data)

Source from the content-addressed store, hash-verified

755 ],
756)
757def test_extractall_lookarounds(any_string_dtype, pat, expected_data):
758 # https://github.com/pandas-dev/pandas/issues/60833
759 ser = Series(["aa", "ab", "ba", "bb", None], dtype=any_string_dtype)
760 result = ser.str.extractall(pat)
761 expected = Series(expected_data, dtype=any_string_dtype).to_frame()
762 expected.index.names = [None, "match"]
763 tm.assert_frame_equal(result, expected)
764
765
766def test_extract_end_of_string(any_string_dtype):

Callers

nothing calls this directly

Calls 3

SeriesClass · 0.90
extractallMethod · 0.80
to_frameMethod · 0.45

Tested by

no test coverage detected