Skip to main content
image

FlashEDA

PyPI Python Tests License: MIT

Current version: 0.3.0 · Changelog

Analyse any dataset in a few seconds, then get validated cleaning code that runs on the full data, in the engine that fits its size: pandas, polars, DuckDB or PySpark.

FlashEDA analyses a fixed-size random sample, so analysis time barely changes between 100 thousand and 100 million rows.

Install

pip install flasheda            # core
pip install "flasheda[fast]"    # + polars, DuckDB, pyarrow (recommended for big files)
pip install "flasheda[spark]"   # + PySpark

Quick start

import flasheda as fe

# 1. Analyse: any size, a few seconds
report = fe.analyze("orders.csv", target="churn", save_pdf=False)
report.show()                      # console report
report.save_html("report.html")    # or report.save_pdf("report.pdf")

# 2. Clean: get a script for the full data, already checked on the sample
code = fe.clean("orders.csv", target="churn", engine="polars")
code.save("clean_orders.py")       # then: python clean_orders.py

What it does

Overview true row count (read from file metadata, no full load), types, memory, duplicates
Data quality missing values, outliers, skew, likely ID columns, numbers stored as text, spelling variants, rare categories
Target analysis task type, class balance, per-feature predictive power, possible leakage, recommended metric and validation split
Correlations Pearson (numeric) and Cramér's V (categorical)
Reports console, HTML, PDF, JSON
Code generation one cleaning plan → pandas, polars (lazy, streaming), DuckDB SQL (larger than memory) or PySpark
Validation generated code is run on the sample and compared with a reference result before you get it

Cleaning steps

Each step in the generated code has a comment saying why it was added:

  • drop likely-ID, mostly-empty, constant and leaky columns
  • drop rows where the target is missing, and drop duplicate rows
  • convert numbers stored as text ("12.5", "N/A") to numbers
  • merge spelling variants ("Delhi", " delhi", "DELHI")
  • group rare categories into other
  • add <col>_was_missing flags when missingness predicts the target
  • fill nulls (median / mode), log-transform skewed columns, clip outliers

Engine choice

Rows Engine
< 1M pandas
1M – 200M polars or DuckDB
> 200M PySpark (if installed)

Override with fe.analyze(..., engine="duckdb") or report.codegen("duckdb").

Performance

Measured on synthetic messy data:

Task Time
Analyse a 5.1M-row Parquet file 0.56 s
Sample a 1M-row CSV (0.1.x → 0.2.0) 37.3 s → 0.65 s
Analyse + plan + generate + validate, 1M-row CSV with target 2.5 s
Run the generated polars script on 1M rows 0.9 s

Examples

Development

pip install -e ".[dev]"
pytest

License

MIT

Metadata

Release files for flasheda 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flasheda 0.3.0
File Size Uploaded Provenance Actions
flasheda-0.3.0.tar.gz 42.0 kB With provenance Details for flasheda-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flasheda 0.3.0
File Interpreter ABI Platform Actions
flasheda-0.3.0-py3-none-any.whl Python 3 none any Details for flasheda-0.3.0-py3-none-any.whl

Total release size: 87.9 kB

Release files / flasheda-0.3.0.tar.gz

Download URL flasheda-0.3.0.tar.gz
Size 42.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a33a73763ea26167d95cef983dfdc12070304b4d389047eeae26270065771055
BLAKE2b-256 checksum
How to use checksums
36ac4e8f191ee112ea51b47661ded4c5824b8508d1ae55c5ac20e7160b35c4ef
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 Oct 21, 2026.

Transparency log

Release files / flasheda-0.3.0-py3-none-any.whl

Download URL flasheda-0.3.0-py3-none-any.whl
Size 45.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
66e8a9d31e0e7dd1847cedb26343b90cf255ff79a60975a4932aaefa198ebf5b
BLAKE2b-256 checksum
How to use checksums
75540e1c6a63424fe81b4f034119af92f9461422d35993324b9ce6580504993b
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 Oct 21, 2026.

Transparency log

Security for flasheda 0.3.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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for flasheda-0.3.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 Oct 21, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page