Compare data in columns with other columns with the help of comparator functions
Project description
# Agua
A system that helps you test the coverage and accuracy of your data applications.
Installation
pip install agua
Example Usage
cd example
agua test
Test results for example.csv
Column: name vs final_name
Coverage (3/4): ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 75.00%
Accuracy (2/3): ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 66.67%
Column: age vs test_age
Coverage (4/4): ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 100.00%
Accuracy (4/4): ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 100.00%
Column: fruit vs test_fruit
Coverage (4/4): ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 100.00%
Accuracy (4/4): ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 100.00%
Configuration
Check out example/agua.yml for configuration options.
To compare columns, you may use one of the existing comparators or specify a python path to a callable. Check out agua/comparators.py for example comparators.
List built-in comparators with,
agua list
Any keyword arguments that need to be passed to the comparator may be specified with a kwargs parameter
Graphs are printed with a slightly modified version of termgraph
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
File details
Details for the file agua-0.1.1.tar.gz.
File metadata
- Download URL: agua-0.1.1.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6ad1fd04433007cce8d40972e145198718d0d76a023d28d26948ffb4db4e2fa
|
|
| MD5 |
91316d43ede6febdf4c8833bec4bd3b1
|
|
| BLAKE2b-256 |
acc2a3dc7e69c59194cee1ae627b4882d04dcbc5931b43af38b4d7f84ada1c06
|