Parameters
The dataframe with flat data
The column to group the data by
Optional path to write the grouped data to. If not specified, data won’t be written anywhere
Returns
Dataframe in grouped format
Group the events by a column. Use this method to form the grouped data for ranking models.