sample project · synthetic data
automated weekly report
three exports from three systems, merged into one finished weekly report with a single command, ready to send every Monday.
- Python
- pandas
- Excel (Power Query)
- 3source files merged
- 294rows processed
- 96.3%fill rate, week 39
- 2.45%defect rate, week 39
the report
what lands in the inbox on Monday
this is the real output of the script, shown live. it is a single html file that can be attached to an email or opened in any browser.
all data in this project is synthetic: random numbers with a fixed seed, no real company or person.
from question to result
how the project went
the challenge
every Monday someone copies numbers from the order system, the quality system and the maintenance log into a report by hand. the three exports even use different date formats, column names and number formats.
the approach
I wrote one Python script that reads all three files, fixes their differences, calculates the weekly figures, compares them with the week before and writes the finished report. scheduled every Monday, it runs without anyone touching it.
the result
the report for week 39 builds in seconds. it shows a fill rate of 96.3%, a defect rate of 2.45% and 10.3 h of unplanned maintenance, and points out that Housing is the first product to check.
the data and the code
everything is in the project folder
you can open every file, rerun the scripts and get the same result. nothing is hidden behind a screenshot.
- README.mdwhat the project is and how to run it1 KB
- data/erp_orders.csvorder export: dates as dd.mm.yyyy3 KB
- data/quality_inspections.csvquality export: ISO dates, upper-case product names3 KB
- data/maintenance_log.csvmaintenance log: semicolons and decimal commas2 KB
- src/build_report.pymerges the three files and builds the report6 KB
- output/weekly_summary.csvthe weekly figures as a table513 B
run it yourself
pip install pandas
python src/generate_data.py
python src/build_report.py
free consultation
tired of building the same report by hand?
message me on whatsapp and tell me which report you build every week. the first consultation is free.
not ready to chat? send me an email instead.