Data UrchinData Urchin

Question 36 of 93 · Group Bys

Help

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(...)`.