use upper row value in lower row in pandas dataframe code example Example: pandas get data from upper row df.shift(1)