I am trying to create a DataFrame with a rolling cumulative percentage change. I would like to show the percentage change in the stock from the start date of the purchase (2014-09-05).
import pandas as pd import pandas.io.data as web cvs = web.get_data_yahoo('cvs', '2014-09-05')['Adj Close'] cvsChange = cvs[1:] / cvs.shift(1) - 1
Brian source share