Aggregates
Aggregates are at the heart of data analysis. Doing aggregates generally involves grouping the data by certain key columns followed by applying some kind of reduction logic on the subgroups of data. The function in DTable that performs aggregates is .group_apply(). Here is a sample: