Pocket Python for Finance is a compact and practical guide for finance professionals, students, and investors. This book is designed to quickly equip you with the essential skills to apply Python to financial tasks, starting with the basics of the language itself.
The book moves efficiently from Python fundamentals to key financial applications. You'll learn how to effectively use core libraries like Pandas and Matplotlib to:
Process and analyze financial data.
Automate data retrieval and reporting.
Visualize performance and market trends.
With a focus on hands-on examples, this book offers a fast and direct path to mastering the programming skills necessary for modern financial analysis.
ChaptersIntroduction & requirementsPython: The Language of DataOperations & VariablesLists, Data types, Tuples & DictionariesHelp function in PythonBasic Functions and MethodsThe Numpy LibraryIf - ElseThe Math LibraryCreating FunctionsFor LoopThe Pandas LibraryWhile LoopSaving and Loading .py filesApplication 1: Get Historical DataApplication 2: Data VisualizationApplication 3: (Linear) Regressions & Financial ModelsApplication 4: Portfolio Theory & Optimisation