()
| 324 | |
| 325 | |
| 326 | def test_DataFrame_from_dask_array(): |
| 327 | x = da.ones((10, 3), chunks=(4, 2)) |
| 328 | pdf = pd.DataFrame(np.ones((10, 3)), columns=["a", "b", "c"]) |
| 329 | df = dd.from_dask_array(x, ["a", "b", "c"]) |
| 330 | assert_eq(df, pdf) |
| 331 | # dd.from_array should re-route to from_dask_array |
| 332 | df2 = dd.from_array(x, columns=["a", "b", "c"]) |
| 333 | assert_eq(df, df2) |
| 334 | |
| 335 | |
| 336 | def test_DataFrame_from_dask_array_with_blockwise_ops(): |