This is a set of Jupyter Notebooks that may be used for replicating the examples within the Medium article, Company Valuation With Python.
The package requirements have been intentionally kept to a minimal so that the Notebooks may be run with minimal effort. Some data files have also been provided. Packages have not been used unless absolutely necessary. The list of packages needed for the build are:
numpy
: This is for various numerical tasksscipy
: This has been used for interpolationmatplotlib
: for all the plotting examplesjupyter
: for the Notebooks of coursefinanceMacroFactors
: Used for downloading fundamental and other stock data
This package is available in the repository:
https://github.com/sankhaMukherjee/financeMacroFactors
You can install this package directly into your current virtual environment with the command:
pip3 install git+https://github.com/sankhaMukherjee/financeMacroFactors.git
Each Notebook covers a different Section within the article ...
No. | Section No. | Valuation Type | Notebook |
---|---|---|---|
1 | 4.1. | DFE | Discounted Future Earnings |
2 | 4.2. | DCF | Discounted Cash Flow |
3 | 4.3. | P/S | Price to Sales Ratio |
4 | 4.4. | P/E | Price to Earnings Ratio |
An extra Notebook is present Valuation - Using the Library
that uses the build-in functions within the financeMacroFactors
library to
obtain the value of the valuation using all valuation methods.
If you encounter any problem, please create an issue using the issue tracker. I shall attempt to address them as best as possible.