MCPcopy
hub / github.com/dask/dask / test_from_array_with_column_names

Function test_from_array_with_column_names

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

Source from the content-addressed store, hash-verified

411
412
413def test_from_array_with_column_names():
414 x = da.ones((10, 3), chunks=(3, 3))
415 y = np.ones((10, 3))
416 d1 = dd.from_dask_array(x, columns=["a", "b", "c"]) # dask
417 p1 = pd.DataFrame(y, columns=["a", "b", "c"])
418 assert_eq(d1, p1)
419
420 d2 = dd.from_array(y, columns=["a", "b", "c"]) # numpy
421 assert_eq(d1, d2)
422
423
424def test_from_dask_array_compat_numpy_array_1d():

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…