Skip to content
UPEEC

Data Aggregation

Summarise with group-by, pivot tables and resampling.

Beginner
Comments 0

df.groupby(["line", "shift"]).agg(units=("id", "count"), avg_temp=("temp", "mean")).

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.