This script extracts stock data for Nifty50 or S&P500 from Yahoo Finance and displays the data on charts and gives the correlation of stock among themselves.
Examples of Stock data is stored in Indianstocks_dfs(Nifty50) and stock_dfs(S&P500).The data is of a daily time frame.