pandas · Lesson 7.1 · Pro
pivot_table
Turn long data into a summary grid, with one row per group and one column per category.
In this lesson
- One row per group, one column per category
- Fill the empty cells
- Totals with margins
- pivot: reshape without adding up
Go Pro to read this lesson
Pro unlocks every lesson and practice problem in SQL, Python, pandas and NumPy, with answers and step-by-step explanations.