相關主題
商品描述
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.
What You'll Learn
- 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
Who This Book Is For
Anyone interested in Python, personal finance, and/or both! This book is geared towards those who want to manage their money more effectively and to those who just want to learn or improve their Python.
商品描述(中文翻譯)
處理數據,從零開始在程式碼中建立財務公式,並在日常生活中評估和思考金錢。本書探討 Python 與個人財務,以及如何有效地將兩者結合在一起。
在《Personal Finance with Python》中,您將通過創建利潤計算器、貨幣轉換器、攤銷計劃、預算、投資組合再平衡器和購買預測器,同時學習 Python 和財務。許多範例使用 pandas,這是 Python 中的主要數據處理工具。每一章都是實作型的、自成一體的,並且以有趣的範例為動機。
雖然本書假設讀者對程式設計和 Python 語言有最基本的了解,但如果您沒有任何基礎,也不必擔心。一切都是逐步建立的,前幾章的進度會比較輕鬆。您需要 Python 3.6(或更高版本),所有的設置細節都已包含在內。
您將學到的內容:
- 使用 pandas 處理數據
- 計算淨現值(Net Present Value)和內部收益率(Internal Rate Return)
- 使用 Requests 查詢第三方 API
- 管理秘密
- 建立高效的迴圈
- 使用 Recurrent 解析英文句子
- 使用 YAML 文件格式
- 獲取股票報價並使用 Prophet 預測未來
本書適合對 Python、個人財務或兩者都有興趣的任何人!本書針對那些希望更有效地管理自己財務的人,以及那些想學習或提升 Python 技能的人。