Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/dask/dask
/ extract
Function
extract
dask/array/routines.py:2048–2051 ·
view source on GitHub ↗
(condition, arr)
Source
from the content-addressed store, hash-verified
2046
2047
@derived_from(np)
2048
def
extract(condition, arr):
2049
condition = asarray(condition).astype(bool)
2050
arr = asarray(arr)
2051
return
compress(condition.ravel(), arr.ravel())
2052
2053
2054
@derived_from(np)
Callers
nothing calls this directly
Calls
4
asarray
Function · 0.90
compress
Function · 0.85
astype
Method · 0.45
ravel
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…