Getting Started
Fundamentals
Internals
Reference
Filter elements in collection by a predicate function.
>>> def iseven(x): ... return x % 2 == 0
>>> import dask.bag as db >>> b = db.from_sequence(range(5)) >>> list(b.filter(iseven)) [0, 2, 4]
previous
dask.bag.Bag.distinct
next
dask.bag.Bag.flatten