
This course contains the use of artificial intelligence.
You already write Python. This course is a guided tour of the packages finance developers use every day: which package does which job, the calls you will use most, and the traps that cost real money.
What's covered:
Money and time in the standard library: why float is wrong for money, Decimal and rounding rules, time zones with zoneinfo
NumPy: vectorised returns, compounding, annualising, and a seeded Monte Carlo simulation
numpy-financial: net present value, internal rate of return and loan payments
pandas: loading prices, resampling, rolling volatility, joining positions to prices, and the pandas 3.0 changes that break old code
SciPy: value at risk, implied volatility with a root finder, and a minimum-variance portfolio with constraints
statsmodels: estimating a stock's beta with a regression
Matplotlib charts, the same pipeline in Polars, and a Streamlit dashboard
Pydantic and FastAPI: validating trades and serving a portfolio valuation as a web API
pytest: testing money exactly and floats approximately
How it's built:
One running example: a small portfolio of made-up stocks with synthetic prices. No real market data, and nothing here is investment advice.
Every claim comes from the package's official documentation for the pinned version. Every code sample was run on Python 3.14 with those versions, and every "this is an error" claim was checked against the real error message.
Short lectures, one idea per slide, with captions on every lecture.
Narration: the voice-over is AI-generated (text-to-speech), checked for correct pronunciation of every technical term.
This course is not affiliated with or endorsed by the Python Software Foundation or any package's maintainers. "Python" is a registered trademark of the Python Software Foundation.