← All projects

CASE STUDY / 01

Industrial Instrument Sales Analytics & Reporting Automation

A reproducible analytics pipeline that turns inconsistent operational records into clean data, SQL analysis, automated reports, and business-ready visualizations.

PythonpandasSQLSQLiteMatplotlib

01 / PROBLEM

Problem

Industrial sales records often arrive as inconsistent spreadsheets, making recurring KPI reporting slow and error-prone. Product and regional labels were fragmented, duplicate orders distorted totals, and business questions required repeatable analysis rather than one-off calculations.

02 / SOLUTION

What I Built

I built an end-to-end workflow for synthetic sales data: generation, validation, cleaning, SQLite storage, SQL analysis, automated CSV reporting, and six decision-focused visualizations. The pipeline makes each transformation reproducible and keeps the source data separate from analysis-ready outputs.

03 / PROCESS

Approach / Tools

  1. 01Cleaned 2,525 raw rows with pandas, removed duplicate order IDs, resolved missing values, and validated revenue, cost, and profit calculations.
  2. 02Standardized 29 product labels into 6 families and 17 regional labels into 8 consistent regions.
  3. 03Modeled the cleaned data in SQLite and used CTEs, window functions, aggregations, and conditional logic for KPI analysis.
  4. 04Automated 10 CSV reports and 6 Matplotlib visualizations covering growth, margins, customers, payments, and delivery performance.

04 / IMPACT

Key Results

2,500clean, unique orders
+5.51%2023–2024 revenue growth
59.63%service gross margin
31.28%peak regional long-delivery rate

05 / OUTPUT

Visualization

Monthly revenue trend from January 2023 to December 2024
Monthly revenue trend across the two-year synthetic sales dataset.
Long-delivery rate by region
Regional delivery analysis identifies Jinhua as the highest-delay market.
Gross margin by product family
Product-family profitability highlights the service margin opportunity.

06 / SOURCE

GitHub Repository

Review the code, data workflow, reports, and project documentation.

View on GitHub ↗
Next case studyEnergy AI Evaluation →