Skip to content

Commit

Permalink
Update bag repartition docstring (#5772)
Browse files Browse the repository at this point in the history
repartition can be used both for reducing and increasing the number of partitions. The docstring only mentioned reducing the number of partitions
  • Loading branch information
Timost authored and quasiben committed Jan 8, 2020
1 parent 895eddc commit 8530bdd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dask/bag/core.py
Expand Up @@ -1601,7 +1601,10 @@ def to_delayed(self, optimize_graph=True):
return [Delayed(k, dsk) for k in keys]

def repartition(self, npartitions):
""" Coalesce bag into fewer partitions.
""" Changes the number of partitions of the bag.
This can be used to reduce or increase the number of partitions
of the bag.
Examples
--------
Expand Down

0 comments on commit 8530bdd

Please sign in to comment.