Skip to content

Quantco/datajudge

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8587a05 · Jun 25, 2024
Jun 24, 2024
Jun 24, 2024
Jun 25, 2024
Jun 24, 2024
Apr 20, 2022
Jun 24, 2024
Jun 24, 2024
Jun 24, 2024
Jun 24, 2024
Jun 24, 2024
Apr 20, 2022
Jul 25, 2022
Feb 13, 2024
Jul 25, 2022
Jan 17, 2023
Jun 24, 2024
Jun 24, 2024
Jun 24, 2024
Jun 24, 2024
Feb 24, 2023
Apr 21, 2022
Jun 5, 2024

Repository files navigation

datajudge

CI Documentation Status Conda-forge PypiVersion codecov.io

Express and test specifications against data from database.

Documentation

Usage

datajudge can either be installed via pypi with pip install datajudge or via conda-forge with conda install datajudge -c conda-forge.

Please refer to the Getting Started section of our documentation for details.

Expressing an expectations between different tables from a database may look as such:

from datajudge import BetweenRequirement

companies_between_req = BetweenRequirement.from_tables(
    db_name1="example",
    table_name1="companies",
    db_name2="example",
    table_name2="companies_archive",
)

companies_between_req.add_row_superset_constraint(
    columns1=["name"], columns2=["name"], constant_max_missing_fraction=0
)