Customer Shopping Behavior Analysis
An end-to-end retail analytics project on 3,900 customer transactions — data preparation in Python, ten business questions answered in MySQL, and an interactive Power BI dashboard, with a written report and stakeholder recommendations.

Overview
An end-to-end data analytics workflow on transactional retail data: data preparation and exploration in Python, structured analysis in MySQL, and interactive visualisation in Power BI, followed by an analytical report and a stakeholder presentation with business recommendations.
The problem
A retail company observed changes in purchasing behaviour across demographics, product categories and sales channels. Key business question: how can consumer shopping data be leveraged to identify trends, improve customer engagement, and optimise marketing and product strategies?
Objectives
- Identify the factors that influence customer purchasing decisions and repeat purchases
- Measure how subscriptions and discounts affect spending behaviour
- Find the best-performing products and categories
- Recommend ways to improve customer engagement and retention
Intended users
Retail managers, executives and strategy teams
Features
- Python data preparation: cleaning column names and data types, handling missing values, derived features and EDA
- MySQL analysis of ten business questions — revenue by gender and age group, subscribers vs non-subscribers, discount dependency, shipping types, top products per category (window functions) and New/Returning/Loyal customer segmentation (CTEs)
- Interactive Power BI dashboard connected to MySQL: KPI cards, subscription distribution, revenue and sales by category and age group, with filters
- Analytical report and a stakeholder-focused slide deck
Architecture & implementation
Raw CSV (3,900 customers, 18 attributes) → Python (pandas, NumPy, Matplotlib, Seaborn in Jupyter) for cleaning and feature engineering → MySQL database queried in MySQL Workbench → Power BI Desktop dashboard connected to MySQL.
My contribution
Individual project — data preparation, SQL analysis, Power BI dashboard, analytical report and stakeholder presentation. The presentation slides were generated with Google NotebookLM from the analysis.
Outcomes & evaluation
Dashboard KPIs: 3,900 customers, an average purchase of $59.76 and an average review rating of 3.75; 27% of customers are subscribers. Clothing generated the most revenue (USD 104,264 from 1,737 purchases), followed by Accessories (USD 74,200), Footwear (USD 36,093) and Outerwear (USD 18,524), and Young Adults were the top age group by both revenue and sales. 839 customers used a discount yet still spent at or above the average purchase amount. Subscribed customers showed higher engagement and spending, a few product categories contributed disproportionately to revenue, and review ratings skewed positive. Recommendations: strengthen subscription incentives, optimise discounts for high-impact categories, use reviews to guide product placement, and personalise engagement through segmentation.
Lessons learned
- The dataset covers a limited period, so long-term seasonal effects are not captured
- Some variables, such as discount application, showed limited variation, which limits comparisons
- Insights are constrained by the features available in the dataset
Continue reading
Full-Stack Application
CargoTrust AI — Shipping Document Verifier
A shipping document verifier that checks each Shipping Instruction against its draft Bill of Lading before the BL is issued, flags discrepancies in seven critical fields and drafts the amendment request. Anything it cannot read or decide goes to a person, with the evidence.
Case studyAI / Machine Learning
ThreatLens AI — Explainable Phishing URL Detection
A web application that classifies a submitted URL as likely benign, suspicious or high risk with a trained machine-learning model, explains exactly why, and gives proportionate safety guidance — without ever contacting the destination website.
Case study