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