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

Function test_split_blank_string

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

Source from the content-addressed store, hash-verified

140
141
142def test_split_blank_string(any_string_dtype):
143 # expand blank split GH 20067
144 values = Series([""], name="test", dtype=any_string_dtype)
145 result = values.str.split(expand=True)
146 exp = DataFrame([[]], dtype=any_string_dtype) # NOTE: this is NOT an empty df
147 tm.assert_frame_equal(result, exp)
148
149
150def test_split_blank_string_with_non_empty(any_string_dtype):

Callers

nothing calls this directly

Calls 3

SeriesClass · 0.90
DataFrameClass · 0.90
splitMethod · 0.80

Tested by

no test coverage detected