Compare long-term returns and risk metrics for Nifty 50, TCS, and Asian Paints using Python. Includes data sourcing, visualization, and performance benchmarking.
👉 Full annotated notebook available here: Buy on Gumroad
- Comparison of Nifty 50, TCS and Asian Paints.ipynb: The main Python notebook
To run the .ipynb file, you’ll need:
- Python 3.7+
- Jupyter Notebook or JupyterLab
- Go to Anaconda Download
- Jupyter Notebook is part of Anaconda.
- Click Get Started
- Sign in using your Google account, if required.
- Download the installer for your operating system (Windows, Mac, or Linux).
- After installation, open Anaconda Navigator from your Start Menu or Applications folder.
- Additional installations required:
yfinance,seaborn, andcufflinksare not included with Anaconda. You can install them using the following command in the command prompt: pip install yfinance seaborn cufflinks - In Anaconda Navigator, click Launch under Jupyter Notebook
- Your browser will open with the Jupyter interface. Navigate to the file
Comparison of Nifty 50, TCS and Asian Paints.ipynband start exploring.