GroupBy.aggregate(func=None, method='auto', combine_size=None, *args, **kwargs)#

Aggregate using one or more operations on grouped data.

  • 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’


Aggregated result.

Return type

Series or DataFrame