Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dask/dask
/ fn
Function
fn
dask/tests/test_distributed.py:610–612 ·
view source on GitHub ↗
(x, dt)
Source
from the content-addressed store, hash-verified
608
np = pytest.importorskip(
"numpy"
)
609
610
def
fn(x, dt):
611
assert type(dt) is np.uint16
612
return
x.astype(dt)
613
614
arr = da.blockwise(
615
fn,
"x"
, da.ones(1000),
"x"
, np.uint16(42), None, dtype=np.uint16
Callers
3
submit
Method · 0.85
coerce
Function · 0.85
coerce
Function · 0.85
Calls
1
astype
Method · 0.45
Tested by
no test coverage detected