MCPcopy
hub / github.com/dask/dask / test_to_dask_array_single_partition

Function test_to_dask_array_single_partition

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

to_dask_arrayMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…