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