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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 569afab6ddc33872ef7f7cb1c64e08093d080fe8da9c41610d25a0cefe8667eb |
|
MD5 | a10bbfdfedefb59c7bd75c13599bc72b |
|
BLAKE2b-256 | 719283318b7e2224b7e5666a483112c1bd80d4f20601e2b832c1d16a9ba98f6e |
Hashes for data_drift_detector-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57a38e83c91c62aad72ad0e8621b1b08fd1bd47f7b13d3c8f130b2b1eb994409 |
|
MD5 | ad45d3e332f9bcc87fe02d360374c85e |
|
BLAKE2b-256 | eb0b6d15ef86d71c0cebe0e40de8cc42960f4c4726a8817404aa6c7ba045448b |