MCPcopy Index your code
hub / github.com/dask/dask / where

Function where

dask/array/ma.py:222–228  ·  view source on GitHub ↗
(condition, x=None, y=None)

Source from the content-addressed store, hash-verified

220
221@derived_from(np.ma.core)
222def where(condition, x=None, y=None):
223 if (x is None) != (y is None):
224 raise ValueError("either both or neither of x and y should be given")
225 if (x is None) and (y is None):
226 return nonzero(condition)
227 else:
228 return elemwise(np.ma.where, condition, x, y)

Callers

nothing calls this directly

Calls 2

elemwiseFunction · 0.90
nonzeroFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…