MCPcopy
hub / github.com/dask/dask / test_DataFrame_from_dask_array

Function test_DataFrame_from_dask_array

dask/dataframe/io/tests/test_io.py:326–333  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

324
325
326def test_DataFrame_from_dask_array():
327 x = da.ones((10, 3), chunks=(4, 2))
328 pdf = pd.DataFrame(np.ones((10, 3)), columns=["a", "b", "c"])
329 df = dd.from_dask_array(x, ["a", "b", "c"])
330 assert_eq(df, pdf)
331 # dd.from_array should re-route to from_dask_array
332 df2 = dd.from_array(x, columns=["a", "b", "c"])
333 assert_eq(df, df2)
334
335
336def test_DataFrame_from_dask_array_with_blockwise_ops():

Callers

nothing calls this directly

Calls 2

assert_eqFunction · 0.90
onesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…