dask.bag.range

dask.bag.range

dask.bag.range(n, npartitions)

从零到 n 的数字

示例

>>> import dask.bag as db
>>> b = db.range(5, npartitions=2)
>>> list(b)
[0, 1, 2, 3, 4]