Make the cleaning rule explicit
Excluding returns and non-positive rows creates a purchase-focused view. That makes the dashboard easier to interpret, but its revenue measure should not be mistaken for net revenue after refunds.
CASE STUDY 03 / Personal project · Data & analytics
From retail transactions to customer behavior.
A retail analysis pipeline that connects revenue trends, purchasing behavior, and customer segmentation.
Data preparation, SQL analysis, clustering & dashboard development
Independent portfolio project · Public retail dataset
Source and chart outputs available

THE CONTEXT
Transaction rows do not immediately explain which customers contribute the most, how revenue changes over time, or whether purchasing patterns form meaningful groups. This project makes those questions easier to investigate.
MY CONTRIBUTION
HOW IT CONNECTS
Retail spreadsheet → validated purchase rows → cleaned CSV.
SQL summaries and standardized spending, order, and item features → K-Means.
Aggregate charts and a Streamlit dashboard → patterns a business can investigate.
THE REASONING
Excluding returns and non-positive rows creates a purchase-focused view. That makes the dashboard easier to interpret, but its revenue measure should not be mistaken for net revenue after refunds.
StandardScaler prevents large-value features from dominating K-Means. Clusters are labeled by average spending; those labels are descriptive, not proven marketing recommendations.
CHECKING THE WORK
The cleaning script filters invalid purchase rows, and the analysis exposes customer and monthly aggregates for inspection. The current segmentation code measures spending and frequency-related behavior; it does not calculate recency or implement full RFM analysis.
WHERE IT STANDS
A reproducible path from a retail dataset to a working dashboard and saved visualizations. It demonstrates both the implementation and the business questions behind an analysis.
Three clusters are a modeling choice, not an independently validated optimum. Recency, cluster stability checks, and a clearer order-level average would be useful next steps: the current average feature is calculated at transaction-line level. Only aggregate visuals are reproduced here.