Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dask/dask
/ test_npartitions
Function
test_npartitions
dask/array/tests/test_array_core.py:3943–3945 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
3941
3942
3943
def
test_npartitions():
3944
assert da.ones(5, chunks=(2,)).npartitions == 3
3945
assert da.ones((5, 5), chunks=(2, 3)).npartitions == 6
3946
3947
3948
def
test_elemwise_name():
Callers
nothing calls this directly
Calls
1
ones
Method · 0.45
Tested by
no test coverage detected