import pandas as pd df = pd.read_excel('filename.xlsx') last_five_rows = df.tail(5)print(last_five_rows)