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.
I think a more explicit way of doing this is to use drop.
The syntax is:
And as pointed out by @tim and @ChaimG, this can be done in-place:
One way of implementing this could be:
And another "in place" use: