{"categories":[{"label":"Information Analysis","url":"https://skillfed.io/packages/category/scientific-engineering-information-analysis/2"}],"enrichment":{"capability":"Hampel detects and filters outliers in time-series data by comparing each observation against the Median Absolute Deviation within a sliding window, replacing anomalies with median values.","skillfed_tags":["time-series","outlier-detection","data-cleaning"],"use_cases":["Clean sensor or measurement data before feeding it to a machine learning model.","Detect and remove spikes in financial time-series (stock prices, trading volumes).","Preprocess IoT or monitoring data to identify equipment anomalies or sensor faults.","Prepare time-series datasets for statistical analysis or forecasting by removing outliers.","Identify and flag unusual events in log or event-stream data for further investigation."],"what_it_does":"Hampel is a Python implementation of the Hampel filter, a statistical method for detecting and removing outliers in time-series data. It uses a sliding window approach, computing the Median Absolute Deviation (MAD) for each window and flagging observations that deviate from the median by more than a configurable threshold (n_sigma). Outliers are then replaced with the window's median value.\n\nThe package works with pandas Series and numpy arrays, and returns a Result object containing the filtered data, outlier indices, medians, MAD values, and thresholds. It is designed for cleaning noisy time-series before analysis or modeling, and integrates naturally with pandas workflows via the apply method on DataFrames.","worth_installing":"Yes, if you need robust outlier detection for time-series data and can tolerate dormant maintenance. The package is stable, has no known vulnerabilities, and MIT licensing poses no risk. However, verify that breaking changes in version 1.0.1 do not affect your use case, and be aware that numpy and pandas are substantial dependencies. Not recommended if you need active maintenance or frequent updates."},"id":"hampel","links":{"html":"https://skillfed.io/packages/hampel","md":"https://skillfed.io/packages/hampel.md","pypi":"https://pypi.org/project/hampel/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2023-09-19","license_spdx":null,"license_treatment":"permissive","name":"hampel","python_support":"supports_current","summary":"Python implementation of the Hampel Filter"},"popularity":{"monthly_downloads":228454,"position":9153,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.0.2"}
