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

Function test_map_blocks_dataframe

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

Source from the content-addressed store, hash-verified

5997
5998@pytest.mark.xfail(reason="need to remove singleton index dimension")
5999def 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
6012def test_dask_layers():

Callers

nothing calls this directly

Calls 2

onesMethod · 0.45
map_blocksMethod · 0.45

Tested by

no test coverage detected