MCPcopy
hub / github.com/dask/dask / test_to_dask_array

Function test_to_dask_array

dask/dataframe/dask_expr/io/tests/test_io.py:238–243  ·  view source on GitHub ↗
(optimize)

Source from the content-addressed store, hash-verified

236
237@pytest.mark.parametrize("optimize", [True, False])
238def test_to_dask_array(optimize):
239 pdf = pd.DataFrame({"x": [1, 4, 3, 2, 0, 5]})
240 df = from_pandas(pdf, npartitions=2)
241 darr = df.to_dask_array(optimize=optimize)
242 assert isinstance(darr, da.Array)
243 array_assert_eq(darr, pdf.values)
244
245
246@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

from_pandasFunction · 0.90
to_dask_arrayMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…