Pandas: Group, Join, Reshape

groupby, merge, pivot tables, dates — and their SQL equivalents

45 min · interactive lesson with runnable code and 6 graded exercises.

What you'll be able to do

  • Explain split-apply-combine and use agg vs transform
  • Merge tables with the right how — and catch row explosions
  • Reshape with pivot_table and melt; resample time series
  • Translate GROUP BY, JOIN and window functions into pandas

The full lesson is free with an account.

groupby

transform

merge, join, concat

pivot_table and melt

map and apply

Dates and resampling

Ranking within groups

Common pitfalls