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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfe8ce6cf9a19f5fbd8c3e77e0dfa3e9afff7b5932921470f303e507ef7b20d0 |
|
MD5 | 65e01ed43893e5f5d864c75ce3adac38 |
|
BLAKE2b-256 | c5ff0804ffc74a28022db353b62957304431b41d9be29ee1516106432cae27a9 |
Hashes for data_drift_detector-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83c4f2080156bd51fbf810fa75347dda11b34bb768f6ff87144fec218760db4f |
|
MD5 | 86da87f08d22c6e0cba4615f1d317803 |
|
BLAKE2b-256 | bd2e771cf38cc473e9e50efe72650fcad69e5e46d2ed79e6fefc5045451e6095 |