https://github.com/quantco/datajudge
Assessing whether data from database complies with reference information.
https://github.com/quantco/datajudge
Last synced: 4 months ago
JSON representation
Assessing whether data from database complies with reference information.
- Host: GitHub
- URL: https://github.com/quantco/datajudge
- Owner: Quantco
- License: bsd-3-clause
- Created: 2022-04-20T07:00:13.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-03-11T14:58:18.000Z (about 1 year ago)
- Last Synced: 2025-03-30T18:11:06.777Z (about 1 year ago)
- Language: Python
- Homepage: https://datajudge.readthedocs.io
- Size: 1.38 MB
- Stars: 42
- Watchers: 10
- Forks: 3
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.rst
- License: LICENSE
Awesome Lists containing this project
README
# datajudge
[](https://github.com/Quantco/datajudge/actions/workflows/ci.yaml)
[](https://datajudge.readthedocs.io/en/latest/?badge=latest)
[](https://anaconda.org/conda-forge/datajudge)
[](https://pypi.org/project/datajudge)
[](https://codecov.io/github/QuantCo/datajudge?branch=main)
Express and test specifications against data from database.
[Documentation](https://datajudge.readthedocs.io/en/latest/index.html)
# Supported backends





# 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](https://datajudge.readthedocs.io/en/latest/getting_started.html) section of our documentation for details.
Expressing an expectations between different tables from a database may look as such:
```python
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
)
```