move row up and down in dataframe code example Example: dataframe move row up one df.gdp = df.gdp.shift(-1)