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.16.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52dc3fcf84a6539627804694a22de936fd5e17bf97e87d4df3476e0db65c3ecd |
|
MD5 | bfece43f99f516348537ccd36d703b78 |
|
BLAKE2b-256 | 0d7a40f232bb67a5d7c214205222439f08d51991147d47db4cbd16c86e79962a |
Hashes for data_drift_detector-0.0.16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 478f622b037f6a0b54547f3877908ca67d19fe5f1404037d4913b643d7ddfbd4 |
|
MD5 | 4c288b6c687c1d77bbfe85707687fe63 |
|
BLAKE2b-256 | 3eb93762a95c19df1b63b6bd765696782043756113b0456a8eae8c83732bbce6 |