Skip to content

CodingWithRishi/Customer-Behavior-Analysis

Repository files navigation

Customer Behavior Analysis

An End-to-End Data Analytics Project demonstrating data cleaning, SQL analytics, and interactive Power BI visualization to uncover actionable business insights.

Problem Statement

In today's competitive retail landscape, understanding who your customers are and how they shop is critical for growth. The business lacked visibility into key purchasing patterns, such as seasonal trends, high-value customer segments, and the most profitable product categories. This project solves that problem by building a comprehensive analytics pipeline that transforms raw transaction data into a clear, interactive dashboard—enabling stakeholders to make data-driven decisions on marketing strategies and inventory management.

Project Pipeline

This project follows a complete end-to-end data analytics workflow:

  1. Data Cleaning & Preprocessing (Python/Jupyter): Imported raw transaction data, handled missing values, standardized formats, and prepared a clean dataset for accurate analysis.
  2. SQL Analytics: Queried the database to extract key metrics (e.g., total revenue, average order value, customer segmentation).
  3. Power BI Dashboard: Connected the cleaned data to Power BI to design interactive visualizations that allow users to filter and explore insights dynamically.
  4. Final Report Generation: Summarized the findings, methodologies, and business recommendations into a concise PDF report for leadership.

Tech Stack

  • Database & Querying: SQL
  • Data Preprocessing: Python (Pandas, Jupyter Notebook)
  • Data Visualization: Power BI
  • Documentation & Reporting: PDF / Markdown

Folder Structure

Customer-Behavior-Analysis/
│
├── customer_shopping_behavior.csv               # Cleaned dataset used for analysis
├── Customer_Data_Analyst_Portfolio_Project.ipynb # Data cleaning and preprocessing notebook
├── SQL_Customer_Behavior_Analysis.sql           # SQL scripts for data exploration & insights
├── Customer_Data_Dashboard.pbix                 # Interactive Power BI dashboard file
├── Power_BI_Dashboard_Image/                    # Folder containing dashboard screenshots
│   ├── Best and Worst items .png
│   └── Customer Analysis Revenue .png
├── Images_used/                                 # Additional assets and icons
└── Report_Customer-Behaviour-Analysis.pdf       # Final insights report

Key Insights

  • High-Value Segments: Identified the most profitable demographic groups, providing a clear target for future marketing campaigns.
  • Product Performance: Highlighted the top-performing and lowest-performing items, offering actionable guidance for inventory management.
  • Revenue Trends: Uncovered purchasing trends across different categories and timeframes, helping to align promotions with customer behavior.
  • Payment Methods: Analyzed the distribution of payment methods to understand customer preferences at checkout.

Dashboard Preview

Here are snapshots of the Power BI Dashboard created for this project:

Customer Analysis & Revenue

Customer Analysis Revenue

Best and Worst Performing Items

Best and Worst Items

How to Use

To explore this project locally:

  1. Clone the repository:
    git clone https://github.com/CodingWithRishi/Customer-Behavior-Analysis.git
  2. View the Code:
    • Open Customer_Data_Analyst_Portfolio_Project.ipynb in Jupyter to see the data cleaning process.
    • Open SQL_Customer_Behavior_Analysis.sql in your preferred SQL client to review the analytical queries.
  3. Explore the Dashboard:
    • Download and open Customer_Data_Dashboard.pbix using Power BI Desktop.
  4. Read the Report:
    • Open Report_Customer-Behaviour-Analysis.pdf for a high-level executive summary of the findings.

Future Improvements

  • Predictive Analytics: Implement machine learning to predict future customer purchases or churn.
  • Automated Data Pipeline: Set up an automated ETL process to refresh dashboard data seamlessly when new transactions occur.
  • Deeper Segmentation: Add RFM (Recency, Frequency, Monetary) analysis to further categorize customer loyalty.

Author: Rishi Patel

About

Built an end-to-end retail customer behavior analytics pipeline, from data cleaning and SQL analysis to Power BI dashboards and executive PowerPoint reporting. Turned raw transaction data into actionable insights on customer trends, purchasing patterns, and sales performance.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors