mars.dataframe.groupby.GroupBy.aggregate#
- GroupBy.aggregate(func=None, method='auto', combine_size=None, *args, **kwargs)#
Aggregate using one or more operations on grouped data.
- Parameters
groupby (Mars Groupby) – Groupby data.
func (str or list-like) – Aggregation functions.
method ({'auto', 'shuffle', 'tree'}, default 'auto') – ‘tree’ method provide a better performance, ‘shuffle’ is recommended if aggregated result is very large, ‘auto’ will use ‘shuffle’ method in distributed mode and use ‘tree’ in local mode.
combine_size (int) – The number of chunks to combine when method is ‘tree’
- Returns
Aggregated result.
- Return type