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

Function reify

dask/bag/core.py:1876–1885  ·  view source on GitHub ↗
(seq)

Source from the content-addressed store, hash-verified

1874
1875
1876def reify(seq):
1877 if isinstance(seq, Iterator):
1878 seq = list(seq)
1879 try:
1880 first = next(iter(seq))
1881 except StopIteration:
1882 return seq # empty iterator
1883 if isinstance(first, Iterator):
1884 seq = list(map(list, seq))
1885 return seq
1886
1887
1888def from_delayed(values):

Callers 5

count_reifyFunction · 0.90
to_dataframeFunction · 0.85
total_mem_usageFunction · 0.85

Calls

no outgoing calls

Tested by 3

count_reifyFunction · 0.72