vol7ron
0
Q:

df.shift

# shift index axis by two periods in positive direction 
# axis = 0 is set by default 
df.shift(2, axis = 0) 
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) 
0

New to Communities?

Join the community