Table of contents

  1. Front Matter
    Pages i-xvi
  2. Max Humber
    Pages 1-8
  3. Max Humber
    Pages 9-24
  4. Max Humber
    Pages 25-38
  5. Max Humber
    Pages 39-52
  6. Max Humber
    Pages 53-80
  7. Max Humber
    Pages 81-102
  8. Max Humber
    Pages 103-109
  9. Back Matter
    Pages 111-117

About this book


Deal with data, build up financial formulas in code from scratch, and evaluate and think about money in your day-to-day life. This book is about Python and personal finance and how you can effectively mix the two together. 

In Personal Finance with Python you will learn Python and finance at the same time by creating a profit calculator, a currency converter, an amortization schedule, a budget, a portfolio rebalancer, and a purchase forecaster. Many of the examples use pandas, the main data manipulation tool in Python. Each chapter is hands-on, self-contained, and motivated by fun and interesting examples.

Although this book assumes a minimal familiarity with programming and the Python language, if you don't have any, don't worry. Everything is built up piece-by-piece and the first chapters are conducted at a relaxed pace. You'll need Python 3.6 (or above) and all of the setup details are included.

You will:

• Work with data in pandas
• Calculate Net Present Value and Internal Rate Return
• Query a third-party API with Requests
• Manage secrets
• Build efficient loops
• Parse English sentences with Recurrent
• Work with the YAML file format
• Fetch stock quotes and use Prophet to forecast the future


Python pandas finance personal stock forecasts recurrent price code software source

Authors and affiliations

  • Max Humber
    • 1
  1. 1.Toronto, OntarioCanada

Bibliographic information