I\'m working on a time series, it has a index as dates and a values field. I used these 2 lines to difference the data.
df[\'value2\'] = (df[\'value\'] - df.v