bach.DataFrame.agg
aggβ
(func, axis=1, numeric_only=False, *args, **kwargs)β[source]
Aggregate using one or more operations over the specified axis.
Parametersβ
func
(Union[str, Callable, List[Union[Callable, str]], Dict[str, Union[str, Callable, List[Union[Callable, str]]]]]) β the aggregations to apply on all series. Accepted combinations are:- function, e.g.
SeriesInt64.sum
- function name
- list of functions and/or function names, e.g. [
SeriesInt64.sum
, βmeanβ] - dict of axis labels -> functions, function names or list of such.
- function, e.g.
axis
(int) β the aggregation axis. Onlyaxis=1
supported at the moment.numeric_only
(bool) β whether to aggregate numeric series only, or attempt all.args
β Positional arguments to pass through to the aggregation functionkwargs
β Keyword arguments to pass through to the aggregation function
note
Pandas has numeric_only=None
to attempt all columns but ignore failing ones
silently. This is currently not implemented.
note
The axis
parameter defaults to 1, because 0 is currently unsupported