MCPcopy
hub / github.com/dask/dask / test_from_dask_array

Function test_from_dask_array

dask/dataframe/dask_expr/io/tests/test_io.py:429–435  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

427
428
429def test_from_dask_array():
430 import dask.array as da
431
432 arr = da.ones((20, 4), chunks=(2, 2))
433 df = from_dask_array(arr, columns=["a", "b", "c", "d"])
434 pdf = pd.DataFrame(arr.compute(), columns=["a", "b", "c", "d"])
435 assert_eq(df, pdf)
436
437
438@pytest.mark.parametrize("columns", [1, "aa"])

Callers

nothing calls this directly

Calls 4

from_dask_arrayFunction · 0.90
assert_eqFunction · 0.90
onesMethod · 0.45
computeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…