MCPcopy Create free account
hub / github.com/dask/dask / test_from_dask_array_unknown_width_error

Function test_from_dask_array_unknown_width_error

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

Source from the content-addressed store, hash-verified

504
505
506def test_from_dask_array_unknown_width_error():
507 dsk = {("x", 0, 0): np.random.random((2, 3)), ("x", 1, 0): np.random.random((5, 3))}
508 dx = da.Array(dsk, "x", ((np.nan, np.nan), (np.nan,)), np.float64)
509 with pytest.raises(ValueError, match="Shape along axis 1 must be known"):
510 dd.from_dask_array(dx)
511
512
513@pytest.mark.gpu

Callers

nothing calls this directly

Calls 1

randomMethod · 0.45

Tested by

no test coverage detected