Groupby The split-apply-combine pattern: split rows by a key, apply an aggregation, combine the results. See DS Lec 2.