Assessment
edf.assess() produces an AssessmentReport: a structured, exportable snapshot of dataset quality.
What is assessed
- Dataset name, row and column counts, and memory use
- Overall missing-value count and completeness score
- Exact duplicate rows and uniqueness score
- Completeness, uniqueness, validity, consistency, accuracy and timeliness
- Composite quality score and grade
- Recommendations and validation results
Running an assessment
assessment.py
python
import eazydatafix as edf
report = edf.assess("employees.csv")
report.summary()Python 3.11
>>> report.dataset_info.rows, report.dataset_info.columns(12, 8)>>> report.completeness.total_missing_values5>>> report.quality.score82.76Reading structured metrics
Use the report fields directly when a pipeline needs to make a decision:
quality_gate.py
python
missing = report.completeness.total_missing_values
duplicates = report.uniqueness.duplicate_rows
score = report.quality.score
if score < 80:
raise SystemExit(f"quality gate failed: {score}")Exporting
Export methods write directly to a file. Reports support HTML, JSON, Markdown, CSV, Excel and PDF.
export_report.py
python
report.to_html("quality.html")
report.to_json("quality.json")
report.to_markdown("quality.md")Next
Once you know what is wrong, use edf.fix() to apply a controlled cleaning pipeline.