Group by columns
Groups a DataFrame by one or more columns for subsequent aggregation.
df (DataFrame): The input
DataFrame.
… (Symbol): Variable number of
grouping columns.
The grouped DataFrame.
group_by(mtcars, $cyl)
group_by(mtcars, $cyl, $gear)