Case study / 2025
RetailOps BI
A retail analytics workspace that turns transaction records into customer segments, sales forecasts and a dashboard for exploring the results.
- My contribution
- I built the pipeline from retail transactions to customer segments, sales forecasts and a dashboard.
- Verification
- The checked-in pandas batch reports 5,000 processed transaction rows. A separate segmentation run selected six clusters with a silhouette score of 0.5847.
- Evidence
- Saved batch processing summary

Follow a transaction to the dashboard
I built a batch pipeline that normalizes invoice dates and text fields, flags returns and drops rows with no invoice, date, quantity or price. It filters negative prices and zero quantities, then produces summaries by product, customer, country and time. The dashboard can also read from Snowflake, and FastAPI connects the data and model outputs to Streamlit.
Choose a customer segmentation
I compared K-means runs with different cluster counts on scaled purchase features. Six clusters had the highest silhouette score in the sweep, so I used that setting for the saved segmentation run. The score measures separation within the sample. Sales forecasts have their own time-based evaluation.
Inspect a run
The repository includes example model runs, exported metrics and simulated A/B experiment results. The retrieval layer uses LangChain to build a natural-language view of the data. The simulation outputs are examples for inspecting the pipeline.