PANDAS drop a range of rows from df
dataframe, pandas, python
Solution
Use slice to select the part you want:
df[:-m]
If you want to remove some middle rows, you can use `drop`:
df.drop(df.index[3:5])
Problem
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