Here is a quick tutorial in python to compute Correlation Matrix between multiple stock instruments using python packages like NSEpy & Pandas. Generally Correlation Coefficient is a statistical measure that reflects the correlation between two stocks/financial instruments. Determining the relationship between two securities is useful for analyzing intermarket relationships, sector/stock relationships and sector/market relationships.
First of all thanks for your impressive and motivational reponse for the Nifty Returns Heatmap Generation post. Here is yet another simple visualization stuff using python to compute bunch of NSE Sectoral Indices returns (52 Weeks, YTD , MTD, Last month returns) and visualize the same in a barchart.
Everyone love to visualize this market in their own way. Python comes handy when comes to visualization. One of the Awesome programming language to code any level of complexity. However I start here by simply generating a heatmap which visualizes the Historical Nifty returns since 2000 and there by visualizing the reality of the market.