()
| 5997 | |
| 5998 | @pytest.mark.xfail(reason="need to remove singleton index dimension") |
| 5999 | def test_map_blocks_dataframe(): |
| 6000 | dd = pytest.importorskip("dask.dataframe") |
| 6001 | import pandas as pd |
| 6002 | |
| 6003 | from dask.dataframe.utils import assert_eq as dd_assert_eq |
| 6004 | |
| 6005 | x = da.ones((10, 2), chunks=(5, 2)) |
| 6006 | s = x.map_blocks(pd.DataFrame) |
| 6007 | assert isinstance(s, dd.DataFrame) |
| 6008 | assert s.npartitions == x.npartitions |
| 6009 | dd_assert_eq(s, s) |
| 6010 | |
| 6011 | |
| 6012 | def test_dask_layers(): |
nothing calls this directly
no test coverage detected