All the code for O'Reilly's Python for Finance is here

All the code for O'Reilly's Python for Finance is here

If you're like me, you love O'Reilly books, and have for a long time. And it's not just the cute animals on the cover - the books are typically really well-organized, and have solid code examples that make it easy to put what you're learning into practice.

Right now using Python for Finance is one of the hottest use-cases for Python and an area where the language really shines. And you don't have to read the whole book to dive in and start trying examples because all of the code from the book is actually available on Github.

If you go into the "code" folder you'll find Jupyter Notebooks for each chapter and if you want to take a look at the Chapter list, you can find that here. I'm a big believer in just jumping in and learning from code so this is a great way to start using Python for Finance by seeing some good code examples and using this as your starting point.

My personal favorite chapter of the book is Chapter 8: Performance Python, honestly, just look at what's in this one 🤤

Thanks to AI coding tools like Windsurf and Cursor you can now easily copy and paste code into either of their IDEs and then ask a model like Claude 3.7 Sonnet or o3-mini, both of which are optimized around coding, to explain to you how the code works. In many ways it's like having a mentor by your side, and coupled with the great code examples in Python for Finance, you can really accelerate your learning.

Of course, there's no substitute for buying the book itself and I'm hoping that anyone who reads this and goes through this path ends up deciding to buy the book and support O'Reilly and the awesome job they do in putting content like this together.

Subscribe to Python for Data Science

Sign up now to get access to the library of members-only issues.
Jamie Larson
Subscribe