intent: Python Pandas: drop rows of a timeserie based on time range
rewritten_intent: drop rows of dataframe `df` whose index is smaller than the value of `start_remove` or bigger than the value of`end_remove`
snippet: df.query('index < @start_remove or index > @end_remove')