Skip to content

Commit

Permalink
Update groupby section
Browse files Browse the repository at this point in the history
Signed-off-by: Igoshev, Iaroslav <[email protected]>
  • Loading branch information
YarShev committed Apr 26, 2024
1 parent 7af8514 commit e81b1e8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/flow/modin/core/dataframe/algebra.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,14 @@ equals to the number of CPUs so that each single axis partition gets processed i
GroupBy operator
----------------
Evaluates GroupBy aggregation for that type of functions that can be executed via TreeReduce approach.
To be able to form groups engine broadcasts ``by`` partitions to each partition of the source frame.
To be able to form groups engine broadcasts ``by`` partitions to each partition of the source frame or
applies range partitioning approach.

This operator performs best when the cardinality of ``by`` columns is low (small number of output groups).
At the ``Map`` stage, the operator computes the aggregation for each row partition individually, meaning,
that the ``Reduce`` stage takes a dataframe with the following number of rows:
``num_groups * n_row_parts``. If the number of groups is too high, there's a risk of getting a dataframe
with even bigger than the initial shape at the ``Reduce`` stage.

Default-to-pandas operator
--------------------------
Expand Down

0 comments on commit e81b1e8

Please sign in to comment.