dask.bag.Bag.any

dask.bag.Bag.any

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

这些元素中有任何一个是真值吗?

示例

>>> import dask.bag as db
>>> bool_bag = db.from_sequence([True, True, False])
>>> bool_bag.any().compute()
True