pandas shift values by two columns code example
Example: dataframe shift python
df.shift(2, axis = 0)
df.shift(-2, axis = 0)
df[c1] = df[c2].shift(2, axis = 0)
df[c1] = df[c2].shift(-2, axis = 0)
df.shift(2, axis = 0)
df.shift(-2, axis = 0)
df[c1] = df[c2].shift(2, axis = 0)
df[c1] = df[c2].shift(-2, axis = 0)