ray.data.grouped_data.GroupedData.aggregate#
- GroupedData.aggregate(*aggs: AggregateFn) Dataset [source]#
Implements an accumulator-based aggregation.
- Parameters:
aggs – Aggregations to do.
- Returns:
The output is an dataset of
n + 1
columns where the first column is the groupby key and the second throughn + 1
columns are the results of the aggregations. If groupby key isNone
then the key part of return is omitted.