Отбросить диапазон пандов рядов
#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)