hw to remove last paramater value rows from excel sheet in python code example Example: how to remove last 2 rows in a dataframe df1 = df.iloc[:3]