pandas dataframe print the last 50 rows code example Example: print last n rows of dataframe df1.tail(n)