()
| 411 | |
| 412 | |
| 413 | def test_from_array_with_column_names(): |
| 414 | x = da.ones((10, 3), chunks=(3, 3)) |
| 415 | y = np.ones((10, 3)) |
| 416 | d1 = dd.from_dask_array(x, columns=["a", "b", "c"]) # dask |
| 417 | p1 = pd.DataFrame(y, columns=["a", "b", "c"]) |
| 418 | assert_eq(d1, p1) |
| 419 | |
| 420 | d2 = dd.from_array(y, columns=["a", "b", "c"]) # numpy |
| 421 | assert_eq(d1, d2) |
| 422 | |
| 423 | |
| 424 | def test_from_dask_array_compat_numpy_array_1d(): |