how to keep firt 100 rows only python df code example Example: print last n rows of dataframe df1.tail(n)