()
| 626 | |
| 627 | |
| 628 | def test_rechunk_unknown_from_array(): |
| 629 | pytest.importorskip("pandas") |
| 630 | dd = pytest.importorskip("dask.dataframe") |
| 631 | # pd = pytest.importorskip('pandas') |
| 632 | x = dd.from_array(da.ones(shape=(4, 4), chunks=(2, 2))).values |
| 633 | # result = x.rechunk({1: 5}) |
| 634 | result = x.rechunk((None, 4)) |
| 635 | assert np.isnan(x.chunks[0]).all() |
| 636 | assert np.isnan(result.chunks[0]).all() |
| 637 | assert x.chunks[1] == (4,) |
| 638 | assert_eq(x, result) |
| 639 | |
| 640 | |
| 641 | @pytest.mark.parametrize( |