Description
This course is a focused, practical tour of the core Python libraries used in finance, built around one running portfolio of synthetic stock prices and tested code on Python 3.14. Spanning 8 sections and 27 concise lectures (1 hour and 8 minutes total), the course is designed for people who already write basic Python and want to know which package handles which financial job, how to call key APIs, and how to avoid costly pitfalls. Every concept is tied to concrete portfolio tasks—from exact monetary arithmetic and multi-time-zone market closes to return calculations, risk metrics, portfolio optimization, dashboards, API serving, and automated tests.
Topics This Course Covers
- Money & Time in the Standard Library: Why floating-point math fails for money, using Decimal with rounding (quantize, half-even, contexts), and handling market timestamps across time zones with datetime and zoneinfo.
- NumPy & numpy-financial: Vectorized return calculations, simple versus log returns, cumulative growth, annualization, seeded Monte Carlo simulations, and financial functions like NPV, IRR, and loan payments.
- pandas & pandas 3.0 Gotchas: Working with Series, DataFrame, and DatetimeIndex for prices, resampling, rolling volatility, merging positions with prices, groupby, and adapting to pandas 3.0 changes such as copy-on-write and string dtypes.
- SciPy & statsmodels: Parametric and historical Value at Risk with scipy.stats, Black-Scholes implied volatility with a root finder, constrained minimum-variance portfolios, and beta estimation via OLS regression.
- Visualization, Polars & Dashboards: Generating price and drawdown charts with Matplotlib, running lazy return pipelines in Polars, and building a single-file portfolio dashboard in Streamlit.
- Validation, APIs & Testing (Pydantic, FastAPI, pytest): Validating trades before booking with Pydantic, exposing a portfolio valuation endpoint with FastAPI (including status codes, validation errors, and dependencies), and testing numeric and monetary logic in pytest using approx and parametrize.
Who Will Be Benefitted Taking This Course
- Python Developers in Banking, Asset Management, or Fintech: Engineers already working in or moving into financial software who want a clear map of essential libraries and practical patterns.
- Financial & Data Analysts: Analysts who know basic Python and want to know which package to reach for—and why—when moving beyond ad-hoc scripts.
- Developers Building Portfolio, Risk, or Trading Tools: Builders looking to combine quantitative calculations, data validation, APIs, dashboards, and unit tests on a cohesive portfolio workflow.
Why Take This Course
Financial code punishes subtle mistakes like float drift, naive time zones, and unvalidated inputs, yet many tutorials treat libraries in isolation or rely on outdated conventions. This course takes a concise, hands-on approach where every example runs on Python 3.14, error claims are verified against real error messages, and each lecture focuses on one clear idea so you can quickly pick the right tool for the job. If you already write basic Python and want a compact, high-signal guide to how modern financial packages fit together in practice, it gives you a clean starting point.

![[2025] Complete Python Bootcamp From Zero to Hero in Python](https://res.cloudinary.com/db194k5td/image/upload/v1669220890/profilepictures/n1i9vfitp7wg3cpwwuu1.jpg)







