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

Function test_get

pandas/tests/strings/test_split_partition.py:719–723  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

717
718
719def test_get():
720 ser = Series(["a_b_c", "c_d_e", np.nan, "f_g_h"])
721 result = ser.str.split("_").str.get(1)
722 expected = Series(["b", "d", np.nan, "g"], dtype=object)
723 tm.assert_series_equal(result, expected)
724
725
726def test_get_mixed_object():

Callers

nothing calls this directly

Calls 3

SeriesClass · 0.90
splitMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected