(tmpdir)
| 92 | |
| 93 | |
| 94 | def _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 | |
| 105 | def _array_creation(tmpdir): |