create new dataframe with last 10 rows code example Example: print last n rows of dataframe df1.tail(n)