MCPcopy
hub / github.com/dask/dask / test_from_array_wrong_column_shape_error

Function test_from_array_wrong_column_shape_error

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

Source from the content-addressed store, hash-verified

401
402
403def test_from_array_wrong_column_shape_error():
404 x = da.ones((10, 3), chunks=(3, 3))
405 with pytest.raises(ValueError, match="names must match width"):
406 dd.from_dask_array(x, columns=["a"]) # dask
407
408 y = np.ones((10, 3))
409 with pytest.raises(ValueError, match="names must match width"):
410 dd.from_array(y, columns=["a"]) # numpy
411
412
413def test_from_array_with_column_names():

Callers

nothing calls this directly

Calls 1

onesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…