Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dask/dask
/ test_stack_scalars
Function
test_stack_scalars
dask/array/tests/test_array_core.py:659–664 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
657
658
659
def
test_stack_scalars():
660
d = da.arange(4, chunks=2)
661
662
s = da.stack([d.mean(), d.sum()])
663
664
assert s.compute().tolist() == [np.arange(4).mean(), np.arange(4).sum()]
665
666
667
def
test_stack_promote_type():
Callers
nothing calls this directly
Calls
4
arange
Method · 0.45
mean
Method · 0.45
sum
Method · 0.45
compute
Method · 0.45
Tested by
no test coverage detected