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

Function test_to_dask_array_single_partition

dask/dataframe/tests/test_dataframe.py:2851–2859  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2849
2850
2851def test_to_dask_array_single_partition():
2852 s = pd.Series([1, 2, 3, 4, 5], name="foo", dtype="i4")
2853 a = dd.from_pandas(s)
2854
2855 result = a.to_dask_array(lengths=True)
2856 assert isinstance(result, da.Array)
2857 expected_chunks = (s.shape,)
2858 assert result.chunks == expected_chunks
2859 da.assert_eq(s.values, result)
2860
2861
2862def test_apply():

Callers

nothing calls this directly

Calls 1

to_dask_arrayMethod · 0.80

Tested by

no test coverage detected