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

Function test_split_maxsplit

pandas/tests/strings/test_split_partition.py:183–189  ·  view source on GitHub ↗
(data, pat, any_string_dtype, n)

Source from the content-addressed store, hash-verified

181)
182@pytest.mark.parametrize("n", [-1, 0])
183def test_split_maxsplit(data, pat, any_string_dtype, n):
184 # re.split 0, str.split -1
185 s = Series(data, dtype=any_string_dtype)
186
187 result = s.str.split(pat=pat, n=n)
188 xp = s.str.split(pat=pat)
189 tm.assert_series_equal(result, xp)
190
191
192@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

SeriesClass · 0.90
splitMethod · 0.80

Tested by

no test coverage detected