pandas print specific row code example Example 1: pandas dataframe show one row df.iloc[0,:] Example 2: pandas get data from upper row df.shift(1)