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])
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])