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

Function piecewise

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

Source from the content-addressed store, hash-verified

2205
2206@derived_from(np)
2207def piecewise(x, condlist, funclist, *args, **kw):
2208 return map_blocks(
2209 _int_piecewise,
2210 x,
2211 *condlist,
2212 dtype=x.dtype,
2213 token="piecewise",
2214 funclist=funclist,
2215 func_args=args,
2216 func_kw=kw,
2217 )
2218
2219
2220def _select(*args, **kwargs):

Callers

nothing calls this directly

Calls 1

map_blocksFunction · 0.90

Tested by

no test coverage detected