()
| 5982 | |
| 5983 | |
| 5984 | def test_map_blocks_series(): |
| 5985 | dd = pytest.importorskip("dask.dataframe") |
| 5986 | import pandas as pd |
| 5987 | |
| 5988 | from dask.dataframe.utils import assert_eq as dd_assert_eq |
| 5989 | |
| 5990 | x = da.ones(10, chunks=(5,)) |
| 5991 | s = x.map_blocks(pd.Series) |
| 5992 | assert isinstance(s, dd.Series) |
| 5993 | assert s.npartitions == x.npartitions |
| 5994 | |
| 5995 | dd_assert_eq(s, s) |
| 5996 | |
| 5997 | |
| 5998 | @pytest.mark.xfail(reason="need to remove singleton index dimension") |
nothing calls this directly
no test coverage detected