df .shift(-fd) meaning 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)