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

Function _dataframe_broadcast_join

dask/tests/test_layers.py:94–102  ·  view source on GitHub ↗
(tmpdir)

Source from the content-addressed store, hash-verified

92
93
94def _dataframe_broadcast_join(tmpdir):
95 pd = pytest.importorskip("pandas")
96 dd = pytest.importorskip("dask.dataframe")
97
98 # Perform a computation using an HLG-based broadcast join
99 df = pd.DataFrame({"a": range(10), "b": range(10, 20)})
100 ddf1 = dd.from_pandas(df, npartitions=4)
101 ddf2 = dd.from_pandas(df, npartitions=1)
102 return ddf1.merge(ddf2, how="left", broadcast=True, shuffle_method="tasks")
103
104
105def _array_creation(tmpdir):

Callers

nothing calls this directly

Calls 1

mergeMethod · 0.45

Tested by

no test coverage detected