print last 10 line of dataframe in python code example Example: print last n rows of dataframe df1.tail(n)