Sitelet https://github.com/rudrascience/Customer-Shopping-Trends-Analysis
Skip to content

Repository files navigation

Customer-Shopping-Trends-Analysis

An end-to -end data analytics project that analyses customer purchasing patterns to uncover segments, trends, and drivers of revenue, with the goal of informing marketing, merchandising, and retention strategy using Python (cleaning the dataset & feature engineering), MySQL (structured business queries) and PowerBI (interactive dashboard visualization).

📌 Table of Contents

Project Overview

This project analyzes retail transactions from 10000 Indian customers over 2years to understand how different customer groups shop, what they buy, and what drives repeat purchases. It covers data cleaning, exploratory analysis, customer segmentation, and visualization of results.

⚙️ Prerequisites

  • Python
  • MySQL Server
  • Power BI Desktop

🎯 Business Questions

    1. Which are the top 5 products with the highest average review rating?
    1. What is the total revenue generated by male vs female customers?
    1. What is the revenue contribution of each age group?
    1. Which 5 products have the highest percentage of purchases with discount applied?
    1. Which 50 customers used a discount but still spent more than the average purchase amount?
    1. What are the top 5 most purchased products within each category?
    1. Do subscribed customers spend more? Compare the average spend and total revenue -- between subscribers and non-subscribers
    1. Segment customers into new, returning, loyal based on their -- total number of previous purchases. And show the count of each segment.
    1. Are customers who are reapeated buyers with more than 5 previous purchases also likely to subscribe?
    1. Comapre the average Purchase amount among different payment methods users?

📊 Dataset

Field Description
transactionr_id Unique transaction identifier
customer_id Unique customer identifier
purchase_date Purchasing dates
age Customer age
gender Customer gender
location Customer Cities
category Product category
item_purchased Product name
brand Product brand
color Product Color
size Product size
Quantity Product quantity
purchase_amount Transaction value (INR)
discount_percentage percentage of discount applied on the MRP
festival\sale standard day or a festival day
shipping_charges shipping charge for product
delivery_speed delivery medium
deliver_time_days delivery in days
subscription_status subscription by customers
payment_method Payment type
review_rating Customer rating (1-5)
return_status returned or not
previous_purchases Count of prior purchases
frequency_of_purchases Purchase cadence (weekly, fortnightly, monthly, quartly, rarely)

Size: [10000] x [26] Time range: [01-01-2023] to [31-12-2024]

Core libraries

Python, Pandas, SQLalchemy, MySQL

Jupyter Notebook Python Pandas Sqlalchemy MySQL

🛠️ Methodology

  1. Data Cleaning & Wrangling (Python)
  2. Exploratory Data Analysis (Jupyter)
  3. Relational Analysis (MySQL)
  4. Visualization (Power BI)

📈 Key Findings

  • Non Subscribers bought more Products than subscribers.
  • Clothing section is responsible for most revenue while accessories are the least revenue generator.
  • Middle aged people bought the highest amount.
  • February, June, July and November are the months with least revenue generation.
  • Allen Solly, Beta and Bewakoof are the most sold brands.
  • Clothing items were mostly returned.

Recommendations

  1. Boost Subscriptions - Promote executive benefits for subscribers.
  2. Customer Loyalty Program - Reward repeated buyers to move them into the "Loyal" segment.
  3. Review Discount Policy - Balance Sales boost with Margin control.
  4. Product Positioning - Highlight top rated and best-selling products in the campaign.
  5. Target Marketing - Focus efforts on high revenue age groups and new strategy for younger age group.

🤝 Contribution

Rudrajit Das

📜 License

Apache 2.0 License.

About

Here I have analysed a Kaggle dataset of Customer Shopping Behavior dataset and tried to get trends by analyzing the dataset to make better business decisions.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages