MCPcopy Create free account
hub / github.com/dask/dask / test_map_blocks_series

Function test_map_blocks_series

dask/array/tests/test_array_core.py:5984–5995  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5982
5983
5984def 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")

Callers

nothing calls this directly

Calls 2

onesMethod · 0.45
map_blocksMethod · 0.45

Tested by

no test coverage detected