retrieve last 10 records from pandas dataframe code example Example: print last n rows of dataframe df1.tail(n)