Full code is embedded below (nbviewer). Open in new tab: https://nbviewer.org/github/harshb2007/Quant-Portfolio/blob/main/QUANT%20PORTFOLIO/PROJECT-01-Momentum%20vs%20Mean-Reversion/PROJECT-01_-_Momentum_vs_Mean-Reversion.ipynb.