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

Function test_split_join_roundtrip

pandas/tests/strings/test_strings.py:368–372  ·  view source on GitHub ↗
(any_string_dtype)

Source from the content-addressed store, hash-verified

366
367
368def test_split_join_roundtrip(any_string_dtype):
369 ser = Series(["a_b_c", "c_d_e", np.nan, "f_g_h"], dtype=any_string_dtype)
370 result = ser.str.split("_").str.join("_")
371 expected = ser.astype(object)
372 tm.assert_series_equal(result, expected)
373
374
375def test_split_join_roundtrip_mixed_object():

Callers

nothing calls this directly

Calls 4

SeriesClass · 0.90
splitMethod · 0.80
joinMethod · 0.45
astypeMethod · 0.45

Tested by

no test coverage detected