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

Function _finalize_sample

dask/bag/random.py:124–128  ·  view source on GitHub ↗
(reduce_iter, k)

Source from the content-addressed store, hash-verified

122
123
124def _finalize_sample(reduce_iter, k):
125 sample = reduce_iter[0]
126 if len(sample) < k:
127 raise ValueError("Sample larger than population")
128 return sample
129
130
131def _sample_map_partitions(population, k):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected