I have the following timeserie:
start = pd.to_datetime(\'2016-1-1\') end = pd.to_datetime(\'2016-1-15\') rng = pd.date_range(start, end, freq=\'2h\') df = pd.Dat
df = df.drop(pd.date_range('2018-01-01', '2018-02-01')), errors='ignore')