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