edfEazyDataFix

Reports

Every EazyDataFix object serialises to JSON and HTML so your pipeline stays auditable.

HTML reports

Both QualityReport and Profile expose .to_html() for standalone, styled reports.

reports.py
report = edf.assess("employees.csv")
report.to_html("quality.html")

prof = edf.profile("employees.csv")
prof.to_html("profile.html")

JSON output

Use .to_dict() or .to_json() for machine-readable outputs.

reports_json.py
import json

with open("quality.json", "w") as f:
    json.dump(report.to_dict(), f, indent=2)

Wiring into CI

Persist reports as build artefacts and fail the job when report.quality_score drops below a threshold.

ci_gate.py
report = edf.assess("nightly.csv")
if report.quality_score < 90:
    raise SystemExit(f"quality regressed: {report.quality_score}")