Pandas Basics

DataFrames, loc vs iloc, filtering, and missing values

45 min · interactive lesson with runnable code and 6 graded exercises.

What you'll be able to do

  • Create and inspect DataFrames (head, info, describe)
  • Select with loc / iloc and filter with boolean masks
  • Add columns with vectorized expressions
  • Find and handle missing values — without leaking test data

The full lesson is free with an account.

Series and DataFrame

Inspecting data

loc vs iloc

Filtering rows

Adding columns

Missing values

Duplicates and messy text

Reading and writing

Common pitfalls