shift rows upward dataframe code example Example: dataframe move row up one df.gdp = df.gdp.shift(-1)