Skip to content

I have developed a Dashboard which performs the customer segmentation and product analysis by visually exploring various aspects of sales, quantities, and discounts of products over time and across different categories.

Notifications You must be signed in to change notification settings

MadniAbdulWahab/CustomerSegmentationandProductAnalysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Customer Segmentation and Product Analysis

Description

This project involves creating a data visualization dashboard using Python libraries such as Pandas, Plotly Express, and Panel. The goal of the dashboard is to perform customer segmentation and product analysis by visually exploring various aspects of sales, quantities, and discounts of products over time and across different categories. The dashboard provides interactive filters, allowing users to select a specific month and choose between viewing the data on a monthly or yearly basis. The dataset encompasses data from the year 2018.

Languages and Libraries Used

During the development of this project, I utilized the following languages and libraries:

  • Python: The primary programming language for data analysis and visualization.
  • Pandas: A powerful library for data manipulation and analysis.
  • Plotly.express: A versatile library for interactive visualizations.
  • Panel: A library for creating interactive dashboards and web applications.

Data Preprocessing

To ensure the dataset's integrity and consistency, I undertook critical data preprocessing measures prior to analysis. Here's what I did:

  • Conversion of the 'Order_Date' column to a datetime format, facilitating temporal analysis.
  • Removal of rows containing missing values via the dropna() function.

Additionally, I leveraged the power of grouping and aggregation functions to extract meaningful insights from the data. Grouping the data by various attributes allowed me to uncover patterns and trends within the dataset.

Visualization Dashboard

To visually convey the insights derived from the analysis, I designed an interactive dashboard employing the Panel library and leveraged Plotly.express for visualization purposes. The dashboard consists of distinct components that shed light on diverse facets of customer segmentation and product trends.

  • Total Quantity of Orders Over Date

The initial dashboard component presents a line plot portraying the overall quantity of orders over time. A slider feature empowers users to dynamically select distinct months, enabling the observation of variations. This plot furnishes a comprehensive overview of order patterns throughout the year.

  • Sales by Product Category

The subsequent component showcases a pie chart delineating the sales distribution across diverse product categories for the chosen filters. As the filters are adjusted, the chart adapts to showcase sales proportions based on the selected criteria.

  • Most Profitable Products

The third dashboard component underscores a scatter plot spotlighting the most lucrative products for the chosen filters. This scatter plot aids in the identification of products that contribute significantly to overall profits during the specified period.

  • Top 10 Products with Highest Discount Percentage

The following component showcases a bar plot that vividly displays the top 10 products with the highest discount percentages for the chosen filters. This visualization provides insight into products associated with substantial discounts during the specified criteria.

  • Age Distribution of Customers

The fifth component presents a box plot illustrating the distribution of customer ages based on the chosen filters. This visualization offers insights into the age demographics of the customer base during the selected timeframe.

  • Device Type Distribution of Customers

The final component is a pie chart depicting the distribution of customer device types based on the chosen filters. This visualization provides an overview of the devices customers use to access the e-commerce platform during the selected criteria.

Here is how the Dashboard looks like visually:

my ecommerce project

Project Code

For an in-depth understanding of the implementation, you can explore the project code. The code encompasses data loading, preprocessing, interactive visualization creation using Plotly.express, and assembly of the dashboard using Panel.

Feel free to examine the code, execute the project, and interact with the dashboard to glean valuable insights into customer segmentation and product analysis based on the 2018 dataset.

Thank you for engaging with my Customer Segmentation and Product Analysis project! Should you have inquiries or feedback, please don't hesitate to reach out.

About

I have developed a Dashboard which performs the customer segmentation and product analysis by visually exploring various aspects of sales, quantities, and discounts of products over time and across different categories.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published