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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 759ba9d735ecc9dfa5088e64da13ce12c50bc2a6b12f523c735efcae9e2e3438 |
|
MD5 | 25fce35c357404d07015716c26f99bd4 |
|
BLAKE2b-256 | c04db8ff1323b6fa8b40ddac793e30d56daa5c9e1ccf1766d7192e0562ed9d98 |
Hashes for data_drift_detector-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16d3f8da67981f00ea03da68960d71d146400618567f6332ad951f299c27001e |
|
MD5 | 049be072f9b606fe45fe9661c7eeebb2 |
|
BLAKE2b-256 | d42dec4d3133252f6a2b9da93e9eb7bf9cde7fd8e954cdc258c876d4475d7b91 |