MCPcopy Create free account
hub / github.com/dask/dask / piecewise

Function piecewise

dask/array/routines.py:2255–2265  ·  view source on GitHub ↗
(x, condlist, funclist, *args, **kw)

Source from the content-addressed store, hash-verified

2253
2254@derived_from(np)
2255def piecewise(x, condlist, funclist, *args, **kw):
2256 return map_blocks(
2257 _int_piecewise,
2258 x,
2259 *condlist,
2260 dtype=x.dtype,
2261 token="piecewise",
2262 funclist=funclist,
2263 func_args=args,
2264 func_kw=kw,
2265 )
2266
2267
2268def _select(*args, **kwargs):

Callers

nothing calls this directly

Calls 1

map_blocksFunction · 0.90

Tested by

no test coverage detected