MCPcopy
hub / github.com/dask/dask / test_partition

Function test_partition

dask/dataframe/dask_expr/tests/test_string_accessor.py:153–159  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

151
152
153def test_partition():
154 df = DataFrame.from_dict({"A": ["A|B", "C|D"]}, npartitions=2)["A"].str.partition(
155 "|"
156 )
157 result = df[1]
158 expected = pd.DataFrame.from_dict({"A": ["A|B", "C|D"]})["A"].str.partition("|")[1]
159 assert_eq(result, expected)

Callers

nothing calls this directly

Calls 2

assert_eqFunction · 0.90
from_dictMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…