remove first portion and last portion of the row dataframe code example Example: pandas delete first row df = df.iloc[3:]