- Home
- About Pixie
- Installing Pixie
- Using Pixie
- Tutorials
- Reference
Computes the aggregate expressions on the data. If the preceding operator is a groupby, then we evaluate the aggregate expression in each group. If not, we calculate the aggregate expression using all of the preceding data. If no arguments specified and the call follows a grouped DataFrame, then agg() returns the unique groups. If following a non-grouped DataFrame agg() with no args will yield a compilation error. Each aggregate expression is simply the aggregate function applied to a column, formatted as <out_col_name>=("<column_name>", <function>)
. A list of functions are available in the UDA docs
Name | Type | Description |
---|---|---|
**kwargs | Tuple[string, AggFn] | The column, aggregate function pair that make up the expression to apply, assigned to the output column name. `<out_col_name>=("<column_name>", <function>)`. If this value is empty, it will return the unique groups in the previous DataFrame. |
px.DataFrame
: DataFrame with aggregated expressions evaluated containing the groups (if any) followed by the output column aggregate expression names.