Python for data analysts
46 levels in 8 chapters
Learn Python and pandas for data analysis: from first variables to groupby, merges and cleaning messy data, run in your browser.
By the end you can load, filter, group, merge and clean real tables in pandas, and explain every step to the person who asked. Every level is open; the path only suggests an order.
Chapter 1 · 5 levels
Python basics
- Compute an order totalNot started, difficulty 1 of 5 Next up
- How many boxes does the warehouse need?Not started, difficulty 1 of 5 Next up
- Format a shelf labelNot started, difficulty 1 of 5 Next up
- Pick the right shipping feeNot started, difficulty 2 of 5 Next up
- Boss Boss: build the checkout calculatorNot started, boss, 3 steps, difficulty 3 of 5 Next up
Chapter 2 · 6 levels
Lists, dictionaries and loops
- Slice a week of ordersNot started, difficulty 1 of 5 Next up
- Total a cart with a loopNot started, difficulty 2 of 5 Next up
- Update the stock sheetNot started, difficulty 2 of 5 Next up
- Count orders by channelNot started, difficulty 2 of 5 Next up
- Filter products in one lineNot started, difficulty 2 of 5 Next up
- Boss Boss: revenue by channel, by handNot started, boss, 3 steps, difficulty 3 of 5 Next up
Chapter 3 · 5 levels
Functions
- A line-total function with a discountNot started, difficulty 2 of 5 Next up
- Return an order summaryNot started, difficulty 2 of 5 Next up
- Tag orders by sizeNot started, difficulty 2 of 5 Next up
- Sort products with a keyNot started, difficulty 3 of 5 Next up
- Boss Boss: parse the supplier exportNot started, boss, 3 steps, difficulty 3 of 5 Next up
Chapter 4 · 6 levels
pandas first look
- Your first DataFrameNot started, difficulty 1 of 5 Next up
- How big is the table?Not started, difficulty 1 of 5 Next up
- Pick the columns you needNot started, difficulty 1 of 5 Next up
- Series or DataFrame?Not started, quiz, difficulty 2 of 5 Next up
- Count orders by statusNot started, difficulty 2 of 5 Next up
- Boss Boss: the first-look reportNot started, boss, 3 steps, difficulty 3 of 5 Next up
Chapter 5 · 6 levels
Filtering and sorting
- Rows by position, columns by nameNot started, difficulty 2 of 5 Next up
- Only the marketplace ordersNot started, difficulty 1 of 5 Next up
- Combine conditions with & and |Not started, difficulty 2 of 5 Next up
- The ten most expensive productsNot started, difficulty 2 of 5 Next up
- Lighting in a price bandNot started, difficulty 2 of 5 Next up
- Boss Boss: who converts on the website?Not started, boss, 3 steps, difficulty 3 of 5 Next up
Chapter 6 · 6 levels
New columns, groupby and aggregation
- Compute line revenueNot started, difficulty 2 of 5 Next up
- Average shipping fee per channelNot started, difficulty 2 of 5 Next up
- A category summary tableNot started, difficulty 3 of 5 Next up
- Orders by channel and statusNot started, difficulty 3 of 5 Next up
- Departments with at least seven peopleNot started, difficulty 3 of 5 Next up
- Boss Boss: find the biggest basketsNot started, boss, 3 steps, difficulty 4 of 5 Next up
Chapter 7 · 6 levels
Merging tables
- Add product names to order linesNot started, difficulty 2 of 5 Next up
- Customers who never orderedNot started, difficulty 3 of 5 Next up
- Revenue by category, completed orders onlyNot started, difficulty 3 of 5 Next up
- Why did shipping revenue double?Not started, quiz, difficulty 3 of 5 Next up
- Shipping fees on lighting ordersNot started, difficulty 4 of 5 Next up
- Boss Boss: where do returns come from?Not started, boss, 3 steps, difficulty 4 of 5 Next up
Chapter 8 · 6 levels
Cleaning messy data
- Where do customers come from?Not started, difficulty 2 of 5 Next up
- Fix the state codesNot started, difficulty 2 of 5 Next up
- Find duplicate customersNot started, difficulty 3 of 5 Next up
- Which weekday sells most?Not started, difficulty 3 of 5 Next up
- What does mean() do with missing costs?Not started, quiz, difficulty 2 of 5 Next up
- Boss Boss: the clean 2025 reportNot started, boss, 3 steps, difficulty 5 of 5 Next up

Megan Collins · Head of Sales
"A customer on the phone is buying two of our table lamps and wants the total before she pays. Can you work it out, shipping included?"
Light the next lantern