Skip to main content

Compare data in columns with other columns with the help of comparator functions

Project description

Agua # 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agua-0.1.1.tar.gz (5.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page