I think a more explicit way to do this is to use drop.
Syntax:
df.drop(label)
And as @tim and @ChaimG pointed out, this can be done locally:
df.drop(label, inplace=True)
One way to implement this could be:
df.drop(df.index[:3], inplace=True)
And one more "in place":
df.drop(df.head(3).index, inplace=True)
drexiya Jul 30 '13 at 14:39 2013-07-30 14:39
source share