All tutorials
Pandas tutorials
Python's data-analysis library — Series & DataFrames, selecting & filtering, cleaning, groupby, merge and pivot tables.
- Chapters
- 16
- Total reading
- 4h 3m
- Level
- Beginner to Advanced
Chapters
- Chapter 114 min readStart
Pandas Fundamentals
The Series and DataFrame, loading data from CSV/Excel, and the first commands you run on any new dataset. - Chapter 215 min readStart
Selecting & Filtering
Pick columns and rows, filter with boolean conditions, and use loc & iloc the right way — the most common pandas task. - Chapter 316 min readStart
Cleaning & Transforming
Handle missing data, fix dtypes, rename and map values, and create new columns — the real work of any analysis. - Chapter 416 min readStart
GroupBy, Merge & Aggregation
Summarise by category with groupby, combine datasets with merge, and reshape with pivot tables — the analyst's power tools. - Chapter 516 min readStart
Advanced Merging & Joining
Master every join type, merge on the index, validate relationships, and combine many tables safely without silently duplicating rows. - Chapter 615 min readStart
Reshaping: Pivot, Melt & Stack
Move between wide and long layouts — melt, pivot, stack and unstack — and understand the tidy-data shape your tools expect. - Chapter 716 min readStart
Time Series & Dates
Work with dates as a first-class index — parse and generate dates, resample to new frequencies, and compute rolling trends. - Chapter 815 min readStart
Text & String Methods
Clean and extract from messy text columns with the vectorised .str accessor and regular expressions. - Chapter 914 min readStart
Categorical Data & Memory
Shrink memory and gain speed with the category dtype, order categories meaningfully, and choose efficient types for large data. - Chapter 1016 min readStart
Advanced GroupBy
Go beyond simple aggregation — transform to broadcast group stats back, filter whole groups, and apply custom per-group logic. - Chapter 1115 min readStart
Window Functions
Compute rolling, expanding and exponentially-weighted statistics, and compare rows to their neighbours with shift, diff and ranking. - Chapter 1215 min readStart
MultiIndex & Hierarchical Data
Work with multi-level row and column indexes — build them, select across levels, and flatten back to plain columns. - Chapter 1315 min readStart
The pandas Idiom: Method Chaining
Write clean, readable pipelines with assign, query and pipe — and avoid the SettingWithCopyWarning for good. - Chapter 1414 min readStart
Plotting with pandas
Turn DataFrames into charts directly with .plot — line, bar, histogram and scatter — for fast exploratory visuals. - Chapter 1515 min readStart
Performance & Scaling
Make pandas fast and fit big data in memory — vectorise instead of looping, read in chunks, and know when to reach past pandas. - Chapter 1616 min readStart
End-to-End Analysis
Put it all together — a complete workflow from raw CSV to insight, following the habits that make analyses correct and reproducible.
