Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dask/dask
/ test_rechunk_zero_dim_array
Function
test_rechunk_zero_dim_array
dask/array/tests/test_rechunk.py:273–277 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
271
272
273
def
test_rechunk_zero_dim_array():
274
x = da.zeros((4, 0), chunks=3)
275
y = x.rechunk({0: 4})
276
assert y.chunks == ((4,), (0,))
277
assert_eq(x, y)
278
279
280
def
test_rechunk_zero_dim_array_II():
Callers
nothing calls this directly
Calls
3
assert_eq
Function · 0.90
zeros
Method · 0.45
rechunk
Method · 0.45
Tested by
no test coverage detected