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

Function test_get_strings

pandas/tests/strings/test_split_partition.py:768–772  ·  view source on GitHub ↗
(any_string_dtype)

Source from the content-addressed store, hash-verified

766
767
768def test_get_strings(any_string_dtype):
769 ser = Series(["a", "ab", np.nan, "abc"], dtype=any_string_dtype)
770 result = ser.str.get(2)
771 expected = Series([np.nan, np.nan, np.nan, "c"], dtype=any_string_dtype)
772 tm.assert_series_equal(result, expected)

Callers

nothing calls this directly

Calls 2

SeriesClass · 0.90
getMethod · 0.45

Tested by

no test coverage detected