Zero-false-positive data drift guardrails using DAFSA + BK-tree
Project description
driftfx
🚦 Zero-false-positive drift detection for analytics pipelines.
Fast: Optimized with Cython - handles 10,000+ unique values in under 2 seconds.
Get Started
pip install driftfx
Python Usage
import pandas as pd, driftfx as dr
dr.snapshot(df_baseline, "baseline", cols=["name"])
result = dr.check(df_new, "baseline", cols=["name"])
if not result.is_clean():
if result.renames:
print("Renames / typos:", result.renames[:5]) # first 5 examples
if result.brand_new:
print("Brand-new names:", result.brand_new[:5]) # first 5 examples
CLI Usage
# snapshot baseline
$ driftfx snapshot --input data.parquet --cols name --baseline baseline/
$ Snapshot complete ✓
# check new batch
$ driftfx check --input new.parquet --cols name --baseline baseline/
$ [✖] name: 17 renames / 31 new codes
$ Drift detected: 48 anomalies
Performance
With Cython-optimized Levenshtein distance calculations:
| Operation | Time | Throughput | Dataset |
|---|---|---|---|
| Snapshot | 1.6s | 5,264 rows/s | 10,000 unique values |
| Check | 1.2s | 7,893 rows/s | 10,050 rows |
The Cython implementation provides an 8x speedup for snapshot operations compared to pure Python.
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 Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file driftfx-0.1.0-cp39-cp39-macosx_14_0_x86_64.whl.
File metadata
- Download URL: driftfx-0.1.0-cp39-cp39-macosx_14_0_x86_64.whl
- Upload date:
- Size: 87.1 kB
- Tags: CPython 3.9, macOS 14.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26aca86eede853bc83bc3fcca9dd08d41d9400634675887d1fbaad7b2ec93459
|
|
| MD5 |
5aefc58a48b9924737add678f33b7bb0
|
|
| BLAKE2b-256 |
e409e0c5a84ec4f410a49bf990de83c4f1642549943f18678354eeb83ae58a65
|