dask.bag.Bag.count

dask.bag.Bag.count

Bag.count(split_every=None)[源代码]

计算元素的数量。

示例

>>> import dask.bag as db
>>> numbers = db.from_sequence([1, 2, 3])
>>> numbers.count().compute()
3