Largue uma variedade de linhas pandas
#To delete rows 12 to 22 from the dataframe
df.drop(range(12,23), inplace=True)
M.U
#To delete rows 12 to 22 from the dataframe
df.drop(range(12,23), inplace=True)
df.loc[(df.index < start_remove) | (df.index > end_remove)]