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

Function test_simple

dask/dataframe/dask_expr/tests/test_fusion.py:25–33  ·  view source on GitHub ↗
(df)

Source from the content-addressed store, hash-verified

23
24
25def test_simple(df):
26 out = (df["x"] + df["y"]) - 1
27 unfused = optimize(out, fuse=False)
28 fused = optimize(out, fuse=True)
29
30 # Should only get one task per partition
31 # from_pandas is not fused together
32 assert len(fused.dask) == df.npartitions + 10
33 assert_eq(fused, unfused)
34
35
36def test_with_non_fusable_on_top(df):

Callers

nothing calls this directly

Calls 2

optimizeFunction · 0.90
assert_eqFunction · 0.90

Tested by

no test coverage detected