Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dask/dask
/ fn
Function
fn
dask/tests/test_distributed.py:607–609 ·
view source on GitHub ↗
(x, dt)
Source
from the content-addressed store, hash-verified
605
np = pytest.importorskip(
"numpy"
)
606
607
def
fn(x, dt):
608
assert type(dt) is np.uint16
609
return
x.astype(dt)
610
611
arr = da.blockwise(
612
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