import pandas as pd df = pd.DataFrame({'A': [1, 2, 3], 'B': [4, 5, 6], 'C': [7, 8, 9]}) # Reverse the order of the rows df = df.iloc[::-1] print(df)