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

Function test_from_delayed_dataframe

dask/tests/test_distributed.py:112–121  ·  view source on GitHub ↗
(c)

Source from the content-addressed store, hash-verified

110
111
112def test_from_delayed_dataframe(c):
113 # Check that Delayed keys in the form of a tuple
114 # are properly serialized in `from_delayed`
115 pd = pytest.importorskip("pandas")
116 dd = pytest.importorskip("dask.dataframe")
117
118 df = pd.DataFrame({"x": range(20)})
119 ddf = dd.from_pandas(df, npartitions=2)
120 ddf = dd.from_delayed(ddf.to_delayed())
121 dd.utils.assert_eq(ddf, df, scheduler=c)
122
123
124def test_fused_blockwise_dataframe_merge(c):

Callers

nothing calls this directly

Calls 2

from_delayedMethod · 0.80
to_delayedMethod · 0.45

Tested by

no test coverage detected