group_by
Group data by specified columns and apply aggregation functions to each group.
ds_in
dataset
requiredThe input dataset containing the columns to group by and apply aggregations on.
ds_out
dataset
requiredA dataset containing the aggregated results based on the grouping operations.
by
array
requiredColumns to group by.
An array specifying the columns used for grouping. The by
parameter can be either:
- An array of column names (e.g.,
["column1", "column2"]
), which defaults toEXACT
grouping. - An array of objects with
columnName
,groupingType
, and optionalparam
properties.
aggregations
array[object]
requiredAggregation functions to apply. An array specifying the aggregation functions to apply on each group. The array can be empty, in which case no aggregations are performed, but the dataset is still grouped by the specified columns.
Was this page helpful?