I have this original df with 2 stocks and their returns for 5 consecutive trading days.
df
d = {\'1\': [-0.015, 0.026, 0.031, 0.012, 0.045], \'2\':