How to get the last n rows from a Pandas DataFrame in Python Use pandas.DataFrame.iloc() Use pandas.DataFrame.tail()