bach.Series.agg

agg

(func, group_by=None, *args, **kwargs)

[source]

Apply one or more aggregation functions to this Series.

Parameters

  • func (Union[str, Callable, List[Union[Callable, str]]]) – the aggregation function to look for on all series. See GroupBy.agg() for supported arguments
  • group_by (GroupBy) – the group_by to use, or aggregation over full base_node if None
  • args – Positional arguments to pass through to the aggregation function
  • kwargs – Keyword arguments to pass through to the aggregation function

Returns

Aggregated Series, or DataFrame if multiple series are returned

Return type

Union[DataFrame, Series]