dask.bag.concat

dask.bag.concat

dask.bag.concat(bags)[源代码]

将许多袋子连接在一起,联合所有元素。

>>> import dask.bag as db
>>> a = db.from_sequence([1, 2, 3])
>>> b = db.from_sequence([4, 5, 6])
>>> c = db.concat([a, b])
>>> list(c)
[1, 2, 3, 4, 5, 6]