Skip to content

pttd1997/customer_behavior_analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

customer_behavior_analysis

An end-to-end analytics project combining SQL, Python, and Power BI to uncover customer insights, perform segmentation, and deliver a business-focused dashboard.

Customer Behavior Analysis

πŸ“Œ Project Overview

This project simulates a real-world data analytics workflow, transforming raw transaction data into actionable business insights.

Using Python, SQL Server, and Power BI, I analyzed ~3,900 customer transactions to understand:

  • Customer behavior and spending patterns
  • Product performance across categories
  • Opportunities to improve retention and revenue

βš™οΈ Tools & Technologies

  • Python (Pandas) - data cleaning & feature engineering
  • SQL Server (T-SQL) - data storage & business analysis
  • JupyterLab - interactive analysis
  • Power BI - dashboard & data visualization

πŸ”„ Project Workflow

  1. Data Preparation (Python)

    • Cleaned missing values and standardized dataset
    • Created new features such as age_group and purchase frequency
  2. Data Analysis (SQL)

    • Loaded data into SQL Server
    • Answered key business questions using:
      • CASE statements
      • CTEs
      • Window functions
  3. Visualization (Power BI)

    • Built an interactive dashboard
    • Enabled filtering by category, subscription status, and shipping type

πŸ“Š Key Insights

  • πŸ’° Revenue Distribution
    Male customers generate 68% of total revenue, while female customers have slightly higher average spend per transaction

  • 🎯 High-Value Customers
    Customers using discounts still spend above average β†’ not purely price-sensitive

  • ⭐ Top Performing Products
    Accessories and footwear categories lead in customer satisfaction

  • πŸ” Customer Loyalty
    ~80% of customers are repeat buyers β†’ strong retention but limited new acquisition

  • πŸš€ Business Opportunity
    Over 2,500 repeat customers are not subscribed, representing a major conversion opportunity


πŸ“ˆ Dashboard Preview

Power BI Dashboard

About

An end-to-end analytics project combining SQL, Python, and Power BI to uncover customer insights, perform segmentation, and deliver a business-focused dashboard.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors