EazyDataFix
Clean messy pandas DataFrames, CSV, and Excel files for analysis and Power BI — including Indian formats such as ₹ amounts and day-first dates — then replay the same rules from a saved recipe.
2.2.0 (released 1 December 2026) is the current stable release. Numeric
recipes can opt into English whole-number words and use explicit mappings for
approved typos. It keeps the v2 recipe API and existing fix, analysis_ready,
ml_ready, powerbi_ready, EDA, and reporting calls. The base install does not include
matplotlib or reportlab; use pip install "eazydatafix[reports]" for
plotting and PDF reports. Agentic EDA stays available for compatibility and
is not the current development focus.
Features
- Profile, score, and clean CSV, Excel, JSON, or a pandas DataFrame.
Parquet works with the optional
parquetextra. - Handle Indian-style values you declare explicitly: strip
₹(and other currency symbols), honor thousands separators, and parse day-first dates with a format such as%d/%m/%Y. Text identifiers like001stay text. - Preview, approve, and replay the same rules with a JSON or YAML
PipelineRecipe. Preview does not modify the source file. - Export Analysis Ready, ML Ready, or Power BI Ready tables plus a
change log. The library does not train models, and it does not create
Power BI
.pbixfiles, visuals, measures, or dashboards. - Score data quality and run validity checks, including GSTIN, PAN, Aadhaar, and Indian PIN codes.
- Stay deterministic by default. Core workflows do not require an LLM.
The library does not parse written Indian units such as lakh or crore.
Numeric recipe rules can opt into English whole-number words with
number_words="en", for example forty thousand → 40000. Known misspellings
need an explicit category_mapping; unknown text follows the declared error
policy. See the recipe guide
and runnable example.
Try it
Install the core library. Profiling, cleaning, recipes, and the readiness workflows do not need plotting or PDF libraries.
pip install eazydatafix
import eazydatafix as edf
recipe = edf.PipelineRecipe(
name="monthly_sales",
columns={
"customer_id": edf.ColumnRule(dtype="string"),
"amount": edf.ColumnRule(dtype="number", currency_symbols=("₹",)),
"order_date": edf.ColumnRule(dtype="datetime", date_format="%d/%m/%Y"),
},
)
pipeline = edf.Pipeline(recipe)
plan = pipeline.preview("sales.csv")
print(plan.result.report())
result = pipeline.apply("sales.csv", plan)
if result.is_ready:
result.save("sales_output")
preview does not modify the source file. Apply only after the printed plan is
the transformation you want. recipe.save(...) writes JSON. YAML needs
pip install "eazydatafix[yaml]". PDF reports and PNG charts need
pip install "eazydatafix[reports]".
A short walkthrough of a messy Indian sales file is on Dev.to: Clean a messy Indian sales CSV for Power BI in 5 minutes with Python.
The quickstart notebook installs the package,
profiles a small sales file, previews a recipe, applies it, and replays the
saved recipe on a second file. The
Power BI example turns a messy sales file
into typed tables, a date dimension, and a change log. It does not create a
.pbix file.
From a checkout, run python examples/v2_sales_pipeline.py. Review steps,
error policies, CLI use, and current limits are in the
recipe guide.
Deterministic preparation you can inspect
EazyDataFix profiles a dataset, scores quality, applies controlled cleaning and
type conversion, and records what changed. Current work is Analysis Ready,
ML Ready, and Power BI Ready data, including repeatable recipes and
transformation evidence. It prepares inputs for those uses. It does not train
models, and it does not generate Power BI .pbix files, visuals, measures,
or dashboards.
Install with pip install eazydatafix ·
Documentation ·
PyPI ·
Tutorial
Quick start
Preview a controlled transformation without modifying the source dataset:
import eazydatafix as edf
preview = edf.fix(
"employees.csv",
edf.FixConfig(
dry_run=True,
numeric_conversion_threshold=0.95,
date_parsing_threshold=0.80,
),
)
print(preview.proposed_dataset)
print(preview.change_log)
Apply the same rules and continue with the prepared DataFrame:
result = edf.fix(
"employees.csv",
edf.FixConfig(
numeric_conversion_threshold=0.95,
date_parsing_threshold=0.80,
),
)
preparation = edf.prepare_with_report(result.dataset)
df = preparation.dataset
print(preparation.changes)
print(df.dtypes)
Or use the existing analysis-ready convenience workflow:
df = edf.analysis_ready("employees.csv")
Return the same prepared dataset with readiness evidence:
result = edf.analysis_ready_with_report(
"employees.csv",
edf.AnalysisReadyConfig(
prepare_config=edf.PrepareConfig(
outlier_action="flag",
derive_date_parts=("year", "month", "day_of_week"),
),
),
)
print(result.before_score, result.after_score, result.is_ready)
print(result.changes)
print(result.warnings)
print(result.validations)
df = result.dataset
The detailed workflow composes assessment, controlled fixing, preparation, and final validation. It also reports constant, nearly empty, invalid, and inconsistently labelled category columns without hiding them from the user.
Prepare leakage-safe supervised machine-learning inputs:
result = edf.ml_ready(
"customer_churn.csv",
target="churned",
config=edf.MLReadyConfig(
test_size=0.20,
categorical_encoding="one_hot",
scaling="standard",
),
)
X_train, X_test = result.X_train, result.X_test
y_train, y_test = result.y_train, result.y_test
print(result.readiness_score, result.is_ready)
print(result.feature_names)
print(result.issues)
# Reuse parameters fitted only from X_train.
result.artifact.to_json("churn_preprocessing.json")
ml_ready(...) requires an explicit target, splits rows before fitting learned
transformations, and never trains or evaluates a model. Identifiers, constants,
high-cardinality features, unsupported datetimes, and likely leakage fields are
reported and safely excluded by default. Missing target rows are dropped before
splitting; the target itself is never imputed, encoded, or scaled.
Prepare a validated multi-table Power BI model input:
tables = {
"sales": "sales.csv",
"customers": "customers.csv",
}
result = edf.powerbi_ready(
tables,
edf.PowerBIReadyConfig(
keys=(edf.PowerBIKey("customers", ("customer_id",)),),
relationships=(
edf.PowerBIRelationship(
"sales",
("customer_id",),
"customers",
("customer_id",),
"many_to_one",
),
),
generate_date_table=True,
date_columns={"sales": ("order_date",)},
),
)
print(result.readiness_score, result.is_ready)
print(result.field_types)
print(result.issues)
result.save("powerbi_output", formats=("csv", "excel"))
powerbi_ready(...) also accepts a single DataFrame or file. It composes the
Analysis Ready workflow, normalizes collision-free names and supported field
types, flattens record-valued fields, validates keys and relationship
cardinality, and can generate a continuous date dimension. Exports include a
JSON readiness report; Parquet uses the existing parquet extra. EazyDataFix
prepares model inputs but intentionally does not generate .pbix reports,
visuals, measures, or dashboards.
The controlled transformation pipeline can:
- Normalize column names and text whitespace
- Detect configured missing-value markers
- Convert safe numeric, currency, percentage, boolean, and date values
- Preserve identifiers, phone numbers, emails, and leading zeroes
- Remove configured duplicates and empty structures
- Record every applied or proposed change
Installation
pip install eazydatafix
For Parquet support:
pip install "eazydatafix[parquet]"
For optional scikit-learn transformer interoperability:
pip install "eazydatafix[ml]"
For PDF reports and PNG charts:
pip install "eazydatafix[reports]"
For every optional integration (reports, Parquet, scikit-learn, YAML, and OpenAI):
pip install "eazydatafix[all]"
The all extra does not install development tools. Requires Python 3.10 or
later. Tested with Python 3.10–3.13.
Why EazyDataFix
Deterministic First
Metrics, findings, and recommendations come from reproducible calculations.
Traceable Decisions
Plans, actions, questions, and visualisations identify their source analysis step.
Safe by Default
Caller DataFrames are not mutated by the deterministic EDA workflow.
AI Optional
The deterministic workflow does not require an LLM. The v0.5.0 release adds optional grounded narratives through a provider adapter; existing workflows continue to run without an API key or AI dependency.
Optional grounded AI narrative
Create a business-facing narrative only after deterministic analysis is complete. The provider receives an immutable, compact evidence brief, not the raw dataset. Every generated statement must cite one or more evidence IDs from that brief. EazyDataFix rejects malformed or unknown citations, invented numbers, unsupported causal language, and claims without sufficient lexical support in their cited evidence. The narrative is bound to the exact workflow by a SHA-256 fingerprint, so it cannot be exported with a different or modified workflow.
These deterministic checks reduce unsupported output but cannot prove the semantic truth of AI-written text. Review the narrative before using it for a decision. HTML and Markdown reports include an evidence-reference section for that review.
import eazydatafix as edf
from eazydatafix.narratives import OpenAINarrativeProvider
workflow = edf.run_agentic_eda("employees.csv")
provider = OpenAINarrativeProvider(model="your-openai-model")
narrative = edf.generate_agentic_eda_narrative(workflow, provider)
report = edf.export_agentic_eda_report(
workflow,
output_dir="eda-report",
formats=["html", "json", "markdown"],
narrative=narrative,
)
Install the adapter only when needed:
pip install "eazydatafix[openai]"
Workflow
flowchart LR
A[Dataset] --> B[Understand]
B --> C[Assign Semantic Roles]
C --> D[Plan Analyses]
D --> E[Execute]
E --> F[Generate Findings and Actions]
F --> G[Export Reports and Visualisations]
Current capabilities
Data Quality
- Missing-value analysis
- Duplicate detection
- Completeness checks
- Validity checks, including GSTIN, PAN, Aadhaar, and Indian PIN codes
- Consistency checks
- Accuracy checks
- Timeliness checks
- Data-quality scoring
Deterministic EDA
- Numeric analysis
- Categorical analysis
- Boolean analysis
- Datetime analysis
- Correlation review
- IQR outlier analysis
- Skewness analysis
- Class-imbalance analysis
Agentic Workflow
- Semantic column-role detection
- Deterministic analysis planning
- Modular analysis execution
- Priority findings
- Traceable follow-up actions
- Visualisation recommendations
- Unresolved domain questions
- Partial-failure isolation
- Human approval checkpoints between planning and execution
- Dataset fingerprint validation before approved execution
Reporting
- Console
- HTML
- PDF, with the optional
reportsextra - Excel
- CSV
- JSON
- Markdown
- Deterministic PNG visualisations, with the optional
reportsextra - Ready-to-run Jupyter Notebook export
Input Support
- pandas DataFrames
- CSV
- Excel
- JSON
- Parquet with the optional dependency
Example output
A data-quality assessment can produce a concise console summary:
EASYDATAFIX DATA QUALITY REPORT
Score : 90.37 / 100
Grade : A
Completeness : 96.97%
Uniqueness : 100.00%
Validity : 55.00%
Consistency : 100.00%
Accuracy : 100.00%
Timeliness : 100.00%
An Agentic EDA report with HTML, JSON, and optional Markdown output can produce:
eda-report/
├── agentic-eda-report.html
├── agentic-eda-report.json
├── agentic-eda-report.md
└── visualisations/
├── 01-missing-value-chart-phone-salary.png
├── 02-bar-chart-department.png
└── 03-time-series-line-chart-joining-date.png
HTML and JSON are generated by default; Markdown is generated when requested. The exact charts depend on the dataset and the workflow's deterministic visualisation recommendations.
API overview
| Public API | Purpose |
|---|---|
edf.profile(...) |
Describe dataset structure, columns, types, and memory use. |
edf.assess(...) |
Measure data quality and return validations and recommendations. |
edf.assess_ai_readiness(...) |
Evaluate suitability for AI-oriented data use. |
edf.eda(...) |
Generate deterministic exploratory statistics and semantic roles. |
edf.plan_eda(...) |
Select and explain relevant follow-up analyses. |
edf.execute_eda(...) |
Execute selected deterministic analysis steps. |
edf.run_agentic_eda(...) |
Run understanding, planning, execution, and follow-up decisions. |
edf.prepare_agentic_eda_approval(...) |
Prepare understanding and planning without executing analysis steps. |
edf.approve_agentic_eda_plan(...) |
Approve all or selected originally planned steps. |
edf.reject_agentic_eda_plan(...) |
Explicitly reject a pending analysis plan. |
edf.resume_agentic_eda(...) |
Resume an approved plan after dataset fingerprint validation. |
edf.export_agentic_eda_report(...) |
Export Agentic EDA reports and recommended visualisations. |
edf.export_agentic_eda_notebook(...) |
Export a reproducible, ready-to-run Jupyter Notebook. |
edf.generate_agentic_eda_narrative(...) |
Generate a cited optional AI narrative from deterministic workflow evidence. |
edf.fix(...) |
Apply controlled, configurable cleaning with optional dry-run audit records. |
edf.run(...) |
Run profile → assess → fix → EDA as one deterministic workflow. |
edf.prepare_with_report(...) |
Prepare data with deterministic change and readiness details. |
edf.infer_schema(...) / edf.validate_contract(...) |
Infer and enforce pipeline data contracts. |
edf.prepare(...) |
Prepare types and columns for downstream analysis. |
edf.analysis_ready(...) |
Clean and prepare a dataset in one workflow. |
edf.analysis_ready_with_report(...) |
Return Analysis Ready data with scores, changes, warnings, and validation. |
edf.ml_ready(...) |
Create leakage-safe train/test inputs and reusable preprocessing artifacts. |
edf.powerbi_ready(...) |
Prepare validated single-table or multi-table Power BI model inputs and exports. |
edf.Pipeline / edf.PipelineRecipe |
Preview, apply, save, and replay explicit column rules as a versioned recipe. |
Detailed API documentation is maintained on the documentation website.
Resources
- Project Website
- Getting Started
- Documentation
- API Reference
- Tutorial: Clean a messy Indian sales CSV for Power BI
- Roadmap
- Changelog
- Quickstart notebook
- Power BI example
- PyPI
- GitHub Repository
- GitHub Issues
Project status
- Current stable version: v2.2.0
- Development status: Production/Stable
- Released: 1 December 2026
- Python support: 3.10–3.13
- Licence: MIT
v2.0.0 added reusable preparation recipes and kept the v1 convenience APIs. The public API follows Semantic Versioning. Backward-incompatible public API changes require a new major version. The 26 August 2026 date was the v1.4.0 release, not v2.0.0.
Roadmap preview
-
v0.3.0 — Deterministic Agentic EDA Foundation — Released
-
v0.4.0 — Notebook Export and Human Approval — Released
-
v0.5.0 — Optional Grounded AI Narratives — Released
-
v0.6.0 — Controlled, Auditable Cleaning — Shipped in v1.0.0
-
v0.7.0 — Data Preparation and Feature Readiness — Shipped in v1.0.0
-
v0.8.0 — Data Validation and Contracts — Shipped in v1.0.0
-
v0.9.0 — Production Workflow — Shipped in v1.0.0
-
v1.0.0 — Stable Production API — Released
-
v1.2.0 profile — Analysis Ready — Shipped in v1.4.0
-
v1.3.0 profile — ML Ready — Shipped in v1.4.0
-
v1.4.0 — Power BI Ready and transformation-first release — Shipped
-
v2.0.0 — Reusable, reviewable preparation recipes — Shipped
- Explicit column rules, invalid-value policies and transformation audits.
- Recipe-backed Analysis Ready, ML Ready and Power BI Ready workflows.
- Preview/apply integrity checks, reusable ML inference and CLI recipe exports.
-
v2.1.0 — Lighter install, examples, and PyPI metadata — Shipped
-
v2.2.0 — Opt-in English number words and explicit typo mappings — Current
-
v1.4.1 — Reproducible packaging maintenance release
See the full roadmap for milestone details.
Contributing
Contributions, issue reports, and focused feature proposals are welcome. See CONTRIBUTING.md for the development workflow, quality checks, and pull-request guidance. Use GitHub Issues to report bugs or discuss a focused change.
Licence
EazyDataFix is available under the MIT Licence.
Metadata
Release files for eazydatafix 2.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| eazydatafix-2.2.0.tar.gz | 205.4 kB | With provenance | Details for eazydatafix-2.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| eazydatafix-2.2.0-py3-none-any.whl | Python 3 | none | any | Details for eazydatafix-2.2.0-py3-none-any.whl |
Total release size: 408.0 kB
Release files / eazydatafix-2.2.0.tar.gz
| Download URL | eazydatafix-2.2.0.tar.gz |
|---|---|
| Size | 205.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
91074c0cc484acf42ffbcf5cdbf341e75759165e6df07da6a89f15ddf9f9fc52
|
|
BLAKE2b-256 checksum How to use checksums |
2e1545be92ab2d61994ddf5bbfd7df21406c0af1ba4cc79a2feeb5775cfe9fac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logRelease files / eazydatafix-2.2.0-py3-none-any.whl
| Download URL | eazydatafix-2.2.0-py3-none-any.whl |
|---|---|
| Size | 202.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
df00047f1ea28911d86534448acc54ad426a168dd0d516aee5771b81529a8945
|
|
BLAKE2b-256 checksum How to use checksums |
e25e3968abfca3fb5a7f74ca6ac858ae68c3eb8a51bf0b772547d3b44aa31660
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logSecurity for eazydatafix 2.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for eazydatafix-2.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.