Delete the first three rows of a dataframe in pandas
I need to delete the first three rows of a dataframe in pandas.
df.ix[:-1] would remove the last row, but I can't figure out how to remove first n rows.
df = df.iloc[3:]
will give you a new df without the first three rows.
★ Back to homepage or read more recommendations: