Answers for "shift that data to the right by one column"

2

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)
Posted by: Guest on October-28-2020

Code answers related to "shift that data to the right by one column"

Python Answers by Framework

Browse Popular Code Answers by Language