The tail() function returns the last N rows from a Pandas DataFrame based on position. You can pass argument n=N to select N rows.
>>> import pandas as pd>>> df = pd.DataFrame({'A':[10,20,30,40,50,60], 'B':[11,22,33,44,55,66], 'C':[12,24,36,48,60,72]})>>> df A B C0 10 11 121 20 22 242 30 33 363 40 44 484 50 55 605 60 66 72>>> df.tail(3) A B C3 40 44 484 50 55 605 60 66 72>>> df.tail(n=3) A B C3 40 44 484 50 55 605 60 66 72