Compare differences between 2 datasets to identify data drift
Project description
Data Drift Detector
This package contains some developmental tools to detect and compare statistical differences between 2 structurally similar pandas dataframes. The intended purpose is to detect data drift - where the statistical properties of an input variable change over time.
We provide a class DataDriftDetector
which takes in 2 pandas dataframes and provides a few useful methods to compare and analyze the differences between the 2 datasets.
Installation
Install the package with pip
pip install data-drift-detector
Example Usage
To compare 2 datasets:
from data_drift_detector import DataDriftDetector
# initialize detector
detector = DataDriftDetector(df_prior = df_1, df_post = df_2)
# methods to compare and analyze differences
detector.calculate_drift()
detector.plot_numeric_to_numeric()
detector.plot_categorical_to_numeric()
detector.plot_categorical()
detector.compare_ml_efficacy(target_column="some_target_column")
You may also view an example notebook in the following directory examples/example_usage.ipynb
to explore how it may be used.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for data-drift-detector-0.0.14.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d44b3c574440909191ee6489eaa7491b33562e172b9b228029e1083aeb525925 |
|
MD5 | 8ff9030e5b46042fbfa91d7aaddefb5e |
|
BLAKE2b-256 | 20370186065194501795f7990926a805ddbb640ff9f2007880a08793661958bf |
Hashes for data_drift_detector-0.0.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ba6854ac05f63ca0b8ef0e58c6701cedbb2f3be507d366109e637d1d40e20c2 |
|
MD5 | 7518328ea22b8f98b6687c3f57dcdd3c |
|
BLAKE2b-256 | 1a8078d878558f9aab5be64c59514df7e206c445f5144d4019b8a5be54238e51 |