← All blog series

Pandas for Finance

The Python data toolkit for finance analysts. yfinance, DataFrames, returns, joins, time-series, and a final backtest in 15 episodes.

15 posts

1
Pandas for Finance: Why Pandas When You Have Excel: 5 Years of Apple in 5 Lines

Pandas for Finance: Why Pandas When You Have Excel: 5 Years of Apple in 5 Lines

Celest KimVideoQuiz available
2
Pandas for Finance: The DataFrame Mental Model: Index, Columns, Series, Vectorized

Pandas for Finance: The DataFrame Mental Model: Index, Columns, Series, Vectorized

Celest KimVideoQuiz available
3
Pandas for Finance: Loading & Caching Real Data: Parquet, load_or_download Pattern

Pandas for Finance: Loading & Caching Real Data: Parquet, load_or_download Pattern

Celest KimVideoQuiz available
4
Pandas for Finance: Filter Rows: Boolean Masks, .query(), .nlargest, Date Slices

Pandas for Finance: Filter Rows: Boolean Masks, .query(), .nlargest, Date Slices

Celest KimVideoQuiz available
5
Pandas for Finance: Pick Tickers and Columns: Brackets, .loc, .iloc, drop, rename

Pandas for Finance: Pick Tickers and Columns: Brackets, .loc, .iloc, drop, rename

Celest KimVideoQuiz available
6
Pandas for Finance: Returns: Daily, Wealth Curve, Annualized, Sharpe, Drawdown

Pandas for Finance: Returns: Daily, Wealth Curve, Annualized, Sharpe, Drawdown

Celest KimVideoQuiz available
7
Pandas for Finance: GroupBy on Time: Buckets, Pivots, Named Aggregations

Pandas for Finance: GroupBy on Time: Buckets, Pivots, Named Aggregations

Celest KimVideoQuiz available
8
Pandas for Finance: Joins: Prices x Sector Lookup, merge() and the SQL JOIN

Pandas for Finance: Joins: Prices x Sector Lookup, merge() and the SQL JOIN

Celest KimVideoQuiz available
9
Pandas for Finance: Dates and the Trading Calendar: .dt, bdate_range, Calendar Gaps

Pandas for Finance: Dates and the Trading Calendar: .dt, bdate_range, Calendar Gaps

Celest KimVideoQuiz available
10
Pandas for Finance: Resampling: Daily to Weekly OHLC, Monthly Returns, Yearly Matrix

Pandas for Finance: Resampling: Daily to Weekly OHLC, Monthly Returns, Yearly Matrix

Celest KimVideoQuiz available
11
Pandas for Finance: Rolling Windows: Moving Avg, Bollinger, Volatility, Drawdown

Pandas for Finance: Rolling Windows: Moving Avg, Bollinger, Volatility, Drawdown

Celest KimVideoQuiz available
12
Pandas for Finance: Cleaning Market Data: Nulls, Forward-Fill, Adj Close Trap, Outliers

Pandas for Finance: Cleaning Market Data: Nulls, Forward-Fill, Adj Close Trap, Outliers

Celest KimVideoQuiz available
13
Pandas for Finance: Writing Out: Excel, Parquet, DuckDB — One Pipeline, Four Formats

Pandas for Finance: Writing Out: Excel, Parquet, DuckDB — One Pipeline, Four Formats

Celest KimVideoQuiz available
14
Pandas for Finance: Capstone Backtest: Equal-Weight Portfolio vs SPY in Pandas

Pandas for Finance: Capstone Backtest: Equal-Weight Portfolio vs SPY in Pandas

Celest KimVideoQuiz available
15
Pandas for Finance: Pandas + DuckDB at Scale: SQL on Parquet, 100× Faster

Pandas for Finance: Pandas + DuckDB at Scale: SQL on Parquet, 100× Faster

Celest KimVideoQuiz available