()
| 4563 | |
| 4564 | |
| 4565 | def test_mixed_dask_array_multi_dimensional(): |
| 4566 | df = pd.DataFrame( |
| 4567 | {"x": [1, 2, 3, 4, 5], "y": [5.0, 6.0, 7.0, 8.0, 9.0]}, columns=["x", "y"] |
| 4568 | ) |
| 4569 | ddf = dd.from_pandas(df, npartitions=2) |
| 4570 | |
| 4571 | x = (df.values + 1).astype(float) |
| 4572 | dx = (ddf.values + 1).astype(float) |
| 4573 | |
| 4574 | assert_eq(ddf + dx + 1, df + x + 1) |
| 4575 | assert_eq(ddf + dx.rechunk((None, 1)) + 1, df + x + 1) |
| 4576 | assert_eq(ddf[["y", "x"]] + dx + 1, df[["y", "x"]] + x + 1) |
| 4577 | |
| 4578 | |
| 4579 | def test_meta_raises(): |