Pandas Step by Step
A lightweight execution-visualization book.
Series Basics
Series from List
Series with Label Index
Series Arithmetic Alignment
Series Aggregate
DataFrame Basics
DataFrame from Records
Select Column
Inspect Shape and Columns
Add Derived Column
Selecting and Filtering
Select Rows by Position (iloc)
Select Rows by Label (loc)
Filter by Condition
Filter with Multiple Conditions
Filter with isin
GroupBy
GroupBy Count
GroupBy Sum
GroupBy Mean
GroupBy Multiple Aggregations
Merging and Combining
Merge Inner
Merge Left
Concat Rows
Map Lookup Column
Sorting and Ranking
Sort by Column
Sort by Multiple Keys
nLargest Top Rows
Rank Values
Reshaping
Pivot Table (Long to Wide)
Melt Wide to Long
Crosstab Counts
Stack and Unstack
Apply and Values
Apply a Function to a Column
Map Values via Dictionary
Value Counts
Replace Values
Dates and Ordered Data
Parse Date Column
Extract Date Parts
Diff Previous Row
Rolling Mean (Window = 3)