Quick Start
Load a dataset, run an assessment, apply the automatic fixer and export the result.
A first dataset
The example below uses a small employees CSV. Any pandas DataFrame or Excel file will work too — see the reference.
quickstart.py
python
import pandas as pd
import eazydatafix as edf
df = pd.read_csv("employees.csv")
report = edf.assess(df)
report.summary()
result = edf.fix(df)
cleaned_df = result.dataframe
result.to_csv("clean.csv")Expected output
Python 3.11
>>> report = edf.assess(df)>>> report.summary()QualityReport(<DataFrame>) rows 1,204 columns 12 quality_score 94.0 missing_values 38 (0.3%) duplicates 6 (0.5%) >>> result = edf.fix(df)>>> result.applied_fixes['strip_whitespace', 'coerce_numeric', 'drop_duplicates(6)', 'impute_missing(38, median)']