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

Function unzip

dask/utils.py:2300–2305  ·  view source on GitHub ↗

Unzip a list of lists into ``nout`` outputs.

(ls, nout)

Source from the content-addressed store, hash-verified

2298
2299
2300def unzip(ls, nout):
2301 """Unzip a list of lists into ``nout`` outputs."""
2302 out = list(zip(*ls))
2303 if not out:
2304 out = [()] * nout
2305 return out
2306
2307
2308class disable_gc(ContextDecorator):

Callers 2

to_task_daskFunction · 0.90
call_functionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected