Pandas Learning Roadmap
A structured path from pandas beginner to production data engineer — with milestones, time estimates, and what to build at each stage.
Why Pandas
Pandas is the workhorse of data analysis in Python. From loading and cleaning messy data to computing complex aggregations and building ML feature pipelines, pandas is the tool you reach for first. Every data scientist, ML engineer, and analyst needs it.
Stage 1: DataFrames and Basic Operations (Week 1)
Goal: Load data, explore it, and perform basic transformations.
Topics:
- Introduction to Pandas — Series, DataFrame, why pandas
- DataFrames Deep Dive — read/write, selection, data types, indexing
- Data Cleaning — nulls, duplicates, type coercion, string ops
Milestone: Load a messy CSV (nulls, wrong types, inconsistent strings), clean it completely, and produce a validated summary report — in under 30 lines of code.
Stage 2: Analysis Patterns (Week 2)
Goal: Answer business questions with pandas.
Topics:
- GroupBy and Aggregation — split-apply-combine, multi-agg, transform
- Joins and Merges — merge types, concat, handling duplicates post-merge
- Transformation — apply, map, vectorized ops, custom functions
Milestone: Given 3 related CSVs (orders, customers, products), merge them, compute revenue by customer segment and product category, identify the top 10 customers by LTV, and find churn risk signals.
Stage 3: Specialized Data (Week 3)
Goal: Handle time series and complex data patterns.
Topics:
- Time Series — DatetimeIndex, resample, rolling, time zones
Milestone: Take 2 years of daily sales data, compute 7-day and 30-day rolling averages, identify seasonal patterns, detect anomaly days (>2σ from rolling mean), and produce a monthly summary.
Stage 4: Production Patterns (Week 4)
Goal: Write pandas code that performs well and reads cleanly.
Topics:
- Performance Optimization — dtypes, vectorization, chunked processing, Polars
- Advanced Operations — method chaining, pipe(), MultiIndex, window functions
Milestone: Process a 500MB CSV in chunks without loading it into memory. Compute the same aggregations as Stage 2 but on a file too large to fit in RAM.
Stage 5: Projects
Beginner: Netflix content analyzer, COVID-19 tracker, weather data cleaner
Intermediate: RFM customer segmentation, A/B test analyzer, fraud feature engineering
Advanced: Real-time ETL pipeline, data quality framework, large-scale data processing with Polars
See Pandas Projects for full descriptions.
What Comes After Pandas
- scikit-learn — use pandas DataFrames as input to ML pipelines
- Polars — drop-in replacement for large datasets (10GB+)
- SQLAlchemy + pandas — query databases directly into DataFrames
- Dask — distributed pandas for datasets larger than RAM
Resources
- “Python for Data Analysis” by Wes McKinney (the pandas author)
- Official pandas documentation: pandas.pydata.org/docs
- Real Python pandas tutorials (good for specific topics)