dask.bag.Bag.remove

Bag.remove(predicate)[source]

Remove elements in collection that match predicate.

>>> def iseven(x):
...     return x % 2 == 0
>>> import dask.bag as db
>>> b = db.from_sequence(range(5))
>>> list(b.remove(iseven))
[1, 3]