MCPcopy
hub / github.com/dask/dask / take

Function take

dask/array/routines.py:2055–2061  ·  view source on GitHub ↗
(a, indices, axis=0)

Source from the content-addressed store, hash-verified

2053
2054@derived_from(np)
2055def take(a, indices, axis=0):
2056 axis = validate_axis(axis, a.ndim)
2057
2058 if isinstance(a, np.ndarray) and isinstance(indices, Array):
2059 return _take_dask_array_from_numpy(a, indices, axis)
2060 else:
2061 return a[(slice(None),) * axis + (indices,)]
2062
2063
2064def _take_dask_array_from_numpy(a, indices, axis):

Callers

nothing calls this directly

Calls 2

validate_axisFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…