Group by multiple columns
Group `pets` by both species and sex, computing the count and average weight_lbs for each combination. Pass a list of columns to `.group_by(...)` and multiple expressions to `.agg(...)`.
Group `pets` by both species and sex, computing the count and average weight_lbs for each combination. Pass a list of columns to `.group_by(...)` and multiple expressions to `.agg(...)`.