mars.dataframe.groupby.GroupBy.agg#
- GroupBy.agg(func=None, method='auto', *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.
- 返回
Aggregated result.
- 返回类型