Skip to content
All projects
Data Science2026Completed

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.

Customer Shopping Behavior Analysis cover
01

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.

02

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?

03

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
04

Intended users

Retail managers, executives and strategy teams

05

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
06

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.

07

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.

09

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.

10

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