The legacy pandas edition of Tidy Finance with Python (unmaintained archive)

We migrated Tidy Finance with Python from pandas to polars and merged the R and Python editions into unified chapters. For reference, this post archives the complete rendered output of the previous pandas edition. It is no longer maintained.

Python
Data
Authors
Affiliations

Independent

University of Copenhagen

Danish Finance Institute

Reykjavik University

WU Vienna University of Economics and Business

Published

June 19, 2026

WarningUnmaintained archive

The pages linked below are a frozen snapshot of the original pandas edition of Tidy Finance with Python, captured in June 2026. They are provided for reference only:

  • The code is no longer maintained and may not run with current versions of pandas, numpy, or our data providers.
  • The maintained edition — covering both R and Python (now using polars) in unified chapters — lives at tidy-finance.org/chapters.
  • Only the rendered output is preserved here; the original .qmd sources are not kept.

Why we changed

We rebuilt Tidy Finance with Python around polars instead of pandas, and merged the separate R and Python books into a single set of chapters with side-by-side language tabs. The motivation: faster and more memory-efficient data wrangling, closer parity between the R and Python code, and a single source of truth that is easier to keep in sync.

Because the previous edition will not be updated, we archive its full rendered output below so existing readers, bookmarks, and citations still have somewhere to land.

Archived chapters

These are static, unmaintained pages. Each one carries a banner linking back to the maintained edition.

Front matter

Prerequisites

Getting Started

Financial Data

Asset Pricing

Modeling and Machine Learning

Portfolio Optimization

Appendix