Skip to content

Pandas Workout

200 exercises to build real Pandas intuition, on real data.

Most people learn Pandas by reading the documentation for one method at a time.

That teaches you what groupby does. It doesn't teach you to look at a messy
CSV and recognize that this is a groupby problem — and that recognition is
most of the job.

Pandas Workout is 200 exercises designed to build that instinct. Every one
uses a real public dataset, with the ordinary problems real data has: missing
values, inconsistent types, dates stored as strings, numbers stored with
currency symbols. Every one comes with a full solution that explains the
reasoning, not just the code.

Pandas Workout cover

What you'll work through

440 pages, from Manning Publications.

Get the book

Manning Publications, April 2024. ISBN 9781617299728.

The book ends. Bamboo Weekly doesn't.

Two hundred exercises sounds like a lot until you finish them. Bamboo Weekly is
what comes next: a new Pandas exercise every week, built the same way the
book's are — a real public dataset, a genuine question someone might actually
ask of it, and a full worked solution that explains the thinking.

It has been running since 2022, and it's free.

Read this week's issue · Browse exercises by skill · Subscribe

About the author

I'm Reuven M. Lerner, and I've taught Python and Pandas full time since 1995 —
to engineers at Apple, Cisco, IBM, Intel, PayPal, VMWare, Western Digital and many others. I wrote Pandas Workout and Python Workout for Manning, I
publish Bamboo Weekly, and I teach Python and data-analysis courses at
LernerPython.com.