🪟 Windows TippsThe Gemini desktop app is now available for Windows(11.09.2026 um 17:06 Uhr)
🪟 Windows TippsHeader and Footer not showing in Excel(14.09.2026 um 22:43 Uhr)
🕵️ SicherheitslückenBurn Out, Or Fade Away(14.09.2026 um 14:25 Uhr)
🪟 Windows TippsKB5129194 Windows 11 26H1 Out of Band Update - Deskmodder.de(14.09.2026 um 19:25 Uhr)
🪟 Windows TippsThe Gemini desktop app is now available for Windows(11.09.2026 um 17:06 Uhr)
🪟 Windows TippsHeader and Footer not showing in Excel(14.09.2026 um 22:43 Uhr)
🕵️ SicherheitslückenBurn Out, Or Fade Away(14.09.2026 um 14:25 Uhr)
🪟 Windows TippsKB5129194 Windows 11 26H1 Out of Band Update - Deskmodder.de(14.09.2026 um 19:25 Uhr)

🔧 Programmierung 🕛 vor 2 Monaten 12 Min Lesezeit
0

Running a Real Retail Dataset Through a Python Data Quality Workflow

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht

In the previous article, I extended a small Python data quality ETL starter with AI-ready data preparation.



The important constraint was that the workflow did not call an LLM API, generate embeddings, or train a model. It prepared structured data assets such as schema profiles, data dictionaries, validation summaries, feature-ready CSV files, and manifest files.



Previous article:





The new goal is to move beyond synthetic demo data and show that the same data quality workflow can process a public retail/e-commerce-style dataset locally.



This is still not a big data platform, a production retail analytics system, a benchmark leaderboard, or a public dataset redistribution repository.



The goal is narrower and more practical:




CODE
manually downloaded public retail dataset

prepare_real_dataset_demo.py

normalized retail transaction CSV

existing CLI validation and cleaning workflow

quality reports + SQLite export

run_real_dataset_benchmark.py

benchmark report + summary CSV outputs






That is a useful next step for a portfolio project because it shows the workflow can handle a more realistic dataset while still keeping data handling, scope, and reproducibility clear.






Why add a real dataset benchmark?



Earlier versions of this project used small sample files and generated synthetic order data.



That is useful for testing and documentation, but it leaves one practical question:




Can the workflow handle a public dataset that was not designed specifically for this repository?




v0.7.0 adds an optional real dataset benchmark path to answer that question.



The workflow now demonstrates how to:




  • take a public retail transaction dataset;

  • keep the raw dataset local-only;

  • map external source columns into a project-friendly schema;

  • derive practical fields such as revenue and cancellation flags;

  • reuse the existing CLI validation and cleaning workflow;

  • generate Markdown and JSON quality reports;

  • export cleaned data to SQLite;

  • produce benchmark evidence and summary CSV files.



The key design choice is that the existing CLI remains the source of truth.



The real dataset path does not become a separate pipeline. It prepares the source data, then passes it through the same validation and cleaning workflow used by the rest of the project.






Dataset used in v0.7.0



The default v0.7.0 dataset is the UCI Online Retail dataset.



Official source:








What v0.7.0 adds



The most relevant new files are:




CODE
scripts/prepare_real_dataset_demo.py
scripts/run_real_dataset_benchmark.py
src/dq_etl_starter/real_dataset.py
docs/data_sources.md
docs/real_dataset_benchmark.md
docs/limitations.md
data/expected/online_retail_schema.json






The real dataset helper module handles the project-specific mapping and summary logic.



The two scripts provide a simple local workflow:




  1. prepare the manually downloaded dataset into a normalized CSV;

  2. generate local benchmark evidence and summary outputs after the CLI quality workflow runs.






Project structure after the update



The project now has a clearer path from messy input files to public-dataset benchmark evidence:




CODE
data-quality-etl-starter/
├── data/
│ ├── expected/
│ │ └── online_retail_schema.json
│ └── output/
├── docs/
│ ├── data_sources.md
│ ├── limitations.md
│ └── real_dataset_benchmark.md
├── screenshots/
├── scripts/
│ ├── prepare_real_dataset_demo.py
│ └── run_real_dataset_benchmark.py
├── src/dq_etl_starter/
│ ├── real_dataset.py
│ ├── cli.py
│ ├── clean.py
│ ├── report.py
│ └── validate.py
└── tests/
├── test_real_dataset.py
└── test_real_dataset_benchmark.py






The real dataset path is optional. The default small sample workflows remain unchanged.






Install the project locally



Clone the repository:




CODE
git clone https://github.com/OnerGit/data-quality-etl-starter.git
cd data-quality-etl-starter






Create a virtual environment:




CODE
python -m venv .venv






Activate it on macOS or Linux:




CODE
source .venv/bin/activate






Activate it on Windows PowerShell:




CODE
.venv\Scripts\activate






Install dependencies and the local package:




CODE
pip install -r requirements.txt
pip install -e .






The editable install step is useful because the project uses a src/ layout.






Step 1: Download the public dataset manually



Download the UCI Online Retail dataset from the official UCI Machine Learning Repository page.



Place the file here:




CODE
data/external/online_retail.xlsx






The project does not automatically download the dataset by default.



That is intentional.



For a public portfolio repository, I prefer to keep the data acquisition step explicit. It makes the source, license, citation, and local-only handling policy easier to review.






Step 2: Prepare the normalized dataset



Run the preparation script.



macOS / Linux:




CODE
python scripts/prepare_real_dataset_demo.py \
--raw-input data/external/online_retail.xlsx \
--output data/output/real_dataset/online_retail_normalized.csv






Windows PowerShell:




CODE
python scripts/prepare_real_dataset_demo.py `
--raw-input data/external/online_retail.xlsx `
--output data/output/real_dataset/online_retail_normalized.csv






This step reads the local source file, validates expected source columns, maps UCI columns into project-friendly names, derives additional fields, and writes a normalized CSV.





This is the most important design point in v0.7.0.



The real dataset path reuses the existing validation and cleaning workflow. It does not create a special one-off script that bypasses the project architecture.






Schema for the normalized retail dataset



The schema file is:




CODE
data/expected/online_retail_schema.json






It defines the expected normalized columns and validation rules for fields such as invoice number, stock code, quantity, invoice date, unit price, customer ID, country, revenue, cancellation flag, and source dataset.



The schema is not intended to certify the dataset as business-ready.



It is a practical contract for this starter workflow:




CODE
external retail columns

normalized project columns

expected schema rules

quality report






That is a useful handoff pattern because the next person can inspect both the mapping and the validation report.






Quality report



The CLI workflow writes a Markdown report and a JSON report.



For the real dataset workflow, the Markdown report is written to:




CODE
data/output/real_dataset/run/quality_report.md








The benchmark report is not a universal performance claim.



It is local evidence for this machine, this dependency environment, and this dataset preparation flow.



That distinction matters. Runtime can change depending on CPU, disk speed, Python version, package versions, source file format, operating system, and local machine conditions.






Summary outputs



The benchmark script also writes lightweight summary CSV files.





Previous article:



Preparing AI-Ready Data Without Calling an LLM API



This v0.7.0 update is a practical next step: from synthetic and generated demos to a local public retail dataset benchmark that reuses the same validation, cleaning, reporting, and handoff workflow.

Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
1 Quelle
The Gemini desktop app is now available for Windows
1 Quelle
Header and Footer not showing in Excel
1 Quelle
Burn Out, Or Fade Away
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Running a Real Retail Dataset Through a Python Data Quality Workflow

Thematisch verwandte Begriffe: Running, Real, Retail, Dataset · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...