I want to drop m number of rows from the bottom of a data frame. It is integer indexed (with holes). How can this be done?
pandas == 0.10.1 python == 2.7.3
Use slice to select the part you want:
If you want to remove some middle rows, you can use
This should work
df.head(len(df) - m)