Courses / Course 02
Python for Data
Enough Python to move data around reliably: files, APIs, pandas and small scripts that do not break.
- BeginnerLevel
- about 1.5 hoursTo complete
- 6 lessonsWith checked exercises
- FreeNo account needed
What you will learn
- Work with numbers, text, lists and dictionaries
- Read, filter and summarise CSV files with pandas
- Clean missing values and join tables
- Call APIs safely with retries and validation
- Write a loader that is safe to run twice
Syllabus
- 1Python basics for data work12 min
Values, variables and the handful of Python types you use every day when moving data around.
- 2Rows, dictionaries and loops14 min
Represent rows of data as dictionaries, loop over them, filter them and count them.
- 3Reading data with pandas15 min
Load a CSV file into a DataFrame, look at it, select columns, filter rows and summarise.
- 4Cleaning and joining15 min
Fix missing values, convert types, join tables with merge and add calculated columns.
- 5Calling APIs safely14 min
Real APIs fail, time out and limit you. Write code that retries politely instead of crashing.
- 6Mini project: a loader that is safe to run twice20 min
Build the heart of every data pipeline: a load step that never duplicates data, however many times it runs.
The data you will use
Nordic Shop
A small online shop based in Finland that sells electronics, home goods, sports gear, books and outdoor clothing. Customers sign up, place orders on the website or in the app, and each order contains one or more products.
Tables: customers, products, orders, order_items
Nordic Shop raw feeds
The same Nordic Shop, but before anyone cleaned the data. Every night a job loads the day's orders from the shop system, the payment provider sends its own file, and the customer system keeps a log of every change to a customer.
Tables: raw_orders_feed, payments, customer_history, order_events, customer_contacts, deletion_requests
The lesson Reading data with pandas walks you through every table and column. Under every code box you can also open a list of the tables and what each column means.
Learn in public on GitHub
Do the exercises in the browser, or in the public course repo so your work shows on your GitHub profile.
Fork the course repo
One click on GitHub gives you your own copy with every exercise and dataset.
Solve and open a pull request
Put your answers in your own folder and open a pull request. A bot checks them and comments with ✅ or ❌.
Join the graduates
Finished a course? Add your name to GRADUATES.md. Your work stays on your GitHub profile for recruiters to see.
What you will build
A loader that cleans the shop's raw order feed and is safe to run twice.
Based on a real project: Finland Weather & Aurora