MCPcopy Create free account
hub / github.com/dask/dask / test_str_split_

Function test_str_split_

dask/dataframe/dask_expr/tests/test_string_accessor.py:133–140  ·  view source on GitHub ↗
(index)

Source from the content-addressed store, hash-verified

131
132@pytest.mark.parametrize("index", [None, [0]], ids=["range_index", "other index"])
133def test_str_split_(index):
134 df = pd.DataFrame({"a": ["a\nb"]}, index=index)
135 ddf = from_pandas(df, npartitions=1)
136
137 pd_a = df["a"].str.split("\n", n=1, expand=True)
138 dd_a = ddf["a"].str.split("\n", n=1, expand=True)
139
140 assert_eq(dd_a, pd_a)
141
142
143def test_str_accessor_not_available():

Callers

nothing calls this directly

Calls 3

from_pandasFunction · 0.90
assert_eqFunction · 0.90
splitMethod · 0.80

Tested by

no test coverage detected