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

  1. 1
    Python basics for data work

    Values, variables and the handful of Python types you use every day when moving data around.

    12 min
  2. 2
    Rows, dictionaries and loops

    Represent rows of data as dictionaries, loop over them, filter them and count them.

    14 min
  3. 3
    Reading data with pandas

    Load a CSV file into a DataFrame, look at it, select columns, filter rows and summarise.

    15 min
  4. 4
    Cleaning and joining

    Fix missing values, convert types, join tables with merge and add calculated columns.

    15 min
  5. 5
    Calling APIs safely

    Real APIs fail, time out and limit you. Write code that retries politely instead of crashing.

    14 min
  6. 6
    Mini project: a loader that is safe to run twice

    Build the heart of every data pipeline: a load step that never duplicates data, however many times it runs.

    20 min

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.

  1. Fork the course repo

    One click on GitHub gives you your own copy with every exercise and dataset.

  2. 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 ❌.

  3. Join the graduates

    Finished a course? Add your name to GRADUATES.md. Your work stays on your GitHub profile for recruiters to see.

Open this course on GitHub →

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