Full code is embedded below (nbviewer). Open in new tab: https://nbviewer.org/github/harshb2007/Quant-Portfolio/blob/main/QUANT%20PORTFOLIO/PROJECT-09-CAPM%20Factor%20Models/PROJECT-09_-_CAPM_%26_Fama-French_Factors.ipynb.