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