facebookresearch / Kats

Kats, a kit to analyze time series data, a lightweight, easy-to-use, generalizable, and extendable framework to perform time series analysis, from understanding the key statistics and characteristics, detecting change points and anomalies, to forecasting future trends.
MIT License
4.88k stars 534 forks source link

OutlierDetector remover() raise "KeyError", when trying to remove nonexist timestamp from TimeSeries #268

Open slashqiang opened 1 year ago

slashqiang commented 1 year ago

When calling remover() function, it raise "KeyError", and give a list of timestamps which are not in index. I manually checked the timestamps is not in my original time series, sample code below:

ts_data = TimeSeriesData(df_data, time_col_name='dt') detector = OutlierDetector(ts_data) detector .detector() ts_data_no_outlier = detector .remover(interpolate=True)