Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
def window_anomaly(df, col, window_length, qlow=0.05, qhigh=0.95):
"""
Anomalie detection on sliding window approach.
Partly based on: https://medium.com/@krzysztofdrelczuk/time-series-anomaly-detection-with-python-example-a92ef262f09a
Input
df: dataframe
col: column name as str
window_length: length of the window in steps of the data
qlow: