pandas, by Running It

Labelled data - the index that drives everything, the copy warnings, the joins and the group-bys, each one runnable on the page.

26 modules Free, no login Updated 31 August 2026

About this track

A DataFrame is not a spreadsheet and not a two-dimensional array. It is a set of columns, each with its own dtype, sharing one index - and almost everything that surprises people about pandas comes from that index doing work they did not ask it to do.

This track works up from the Series and the index to selection, missing data, group-by, joins, reshaping and time series. Every idea arrives as a small program you can run and change on the page.

Every example runs in the browser against pandas itself, and several demonstrate a failure rather than describing it - the assignment that silently does nothing, the merge that multiplies rows, the group-by whose totals no longer add up.

What you will be able to do

How the track is ordered

The Series and the index come first, because nearly every pandas surprise traces back to the index doing work you did not ask for. Selection follows, and then the copy warning, which gets a module to itself because nothing else in the library wastes as much of people's time. Cleaning comes next - dtypes, missing values, duplicates, text and dates - since that is where most real work goes. Only then the aggregation everyone thinks of as the point: group-by, joins, reshaping, time series, and the performance rules that decide whether any of it finishes.

Where this leads

pandas sits on NumPy and feeds matplotlib, scikit-learn and most data pipelines. The NumPy track explains the array layer underneath; the matplotlib track picks up where df.plot stops being enough.

All 26 modules, in teaching order

  1. 01What pandas Is For
  2. 02The Index
  3. 03Creating DataFrames
  4. 04Looking at Data
  5. 05loc and iloc
  6. 06Filtering Rows
  7. 07The Copy Warning
  8. 08Adding and Removing Columns
  9. 09Dtypes and Memory
  10. 10Missing Data
  11. 11Duplicates
  12. 12Text Columns
  13. 13Dates and Times
  14. 14Sorting and Ranking
  15. 15groupby
  16. 16transform and filter
  17. 17Counting and Binning
  18. 18apply, map and Vectorising
  19. 19Stacking Frames with concat
  20. 20merge and join
  21. 21Reshaping: pivot and melt
  22. 22The MultiIndex
  23. 23Time Series
  24. 24Reading and Writing Files
  25. 25Performance
  26. 26Method Chaining

Other tracks