← The arcade

Data Wrangling · difficulty 2 of 3

Pivot a sales table 🔀

Turn long rows of region/quarter/sales into a cross-tab with a row per region, a column per quarter, and totals down both edges.

Write it in the browser and press run. Real Python, checked against the expected output, no account needed.

Skills: dicts, lists, files

Open the arcade