MCPcopy
hub / github.com/dask/dask / test_from_dask_array_compat_numpy_array

Function test_from_dask_array_compat_numpy_array

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

Source from the content-addressed store, hash-verified

390
391
392def test_from_dask_array_compat_numpy_array():
393 x = da.ones((10, 3), chunks=(3, 3))
394 y = np.ones((10, 3))
395 d1 = dd.from_dask_array(x) # dask
396 p1 = pd.DataFrame(y)
397 assert_eq(d1, p1)
398
399 d2 = dd.from_array(y) # numpy
400 assert_eq(d2, d1)
401
402
403def test_from_array_wrong_column_shape_error():

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…