Pandas
A free pandas course for beginners: load, select, filter, clean, group, merge and reshape real data in Python, with exercises and projects.
Module 1 · Beginner
Getting started with pandas
What pandas is, its two building blocks, and how to load and save data files.
Module 2 · Beginner
Selecting and filtering data
Pick out exactly the rows and columns you need, and put them in order.
Module 3 · Beginner
Cleaning data
Fix the missing values, duplicates and wrong types that real data always has.
- Handle missing values in pandas: isna, dropna and fillna
- Remove duplicates in pandas
- Change column types with astype and to_numeric
- Rename and drop columns
- Clean text columns with the .str accessor
- Work with dates using to_datetime and .dt
Module 4 · Intermediate
Transforming data
Create new columns and reshape values with apply, map and binning.
- Add new columns in pandas
- apply, map and vectorised operations
- Bin numbers into groups with cut and qcut
- Categorical data in pandas
Module 5 · Intermediate
Grouping, merging and reshaping
Summarise data by group, combine tables, and switch between long and wide formats.
- Pandas groupby explained, with examples
- Pivot tables and crosstabs in pandas
- Merge and join DataFrames
- Concatenate DataFrames
- Reshape data with melt and pivot
Module 6 · Advanced
Time series and performance
Work with dates over time, and keep pandas fast on big files.
- Time series in pandas: resample and rolling
- Make pandas faster and use less memory
- Read large CSV files in chunks
Module 7 · Intermediate
Pandas projects and interview prep
Practise on real datasets, and get ready for pandas interview questions.
- Project: analyse IPL match data
- Project: clean a messy sales spreadsheet
- 50 pandas interview questions with answers
- Pandas quick reference
Want to learn this with others?
Join our free Data analytics training, run by the theprogrammers community.