Skip to content

mouna323/ecommerce-sales-analysis-sql-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Customer Sales Analysis using SQL & Python

Project Overview

This project performs end-to-end sales analysis using SQL and Python to uncover customer behavior, revenue trends, and profitability insights from an e-commerce dataset. The goal is to understand sales performance, customer behavior, and profitability.

Key Questions Answered

  • What is the total revenue and profit?
  • Which regions generate the most sales?
  • Who are the top customers?
  • How does revenue change over time?
  • Do high sales always mean high profit?

Project Workflow

  1. Data cleaning and preprocessing using Python (Pandas)
  2. Loading data into SQLite database
  3. Writing SQL queries to analyze sales and customer behavior
  4. Extracting results into Python for visualization
  5. Creating visualizations using Matplotlib and Seaborn
  6. Generating business insights from the analysis

Key Insights

  • APAC region generates the highest sales → focus marketing there
  • Sales vary over time → plan promotions in low periods
  • A few customers generate most revenue → retain them
  • Sales and profit do not always align → focus on profit margins

Visualizations

Sales vs Profit by Category

Sales profit

Revenue by Region

RevenueByRegion

observation after visualization

This analysis highlights that increasing sales does not always lead to higher profit, emphasizing the importance of optimizing profit margins in business strategy.

Tools & Technologies

  • Python (Pandas, Matplotlib, Seaborn)
  • SQL (SQLite)
  • vscode editor

Author

Mouna Al-Nasser Data Analyst | BI Analyst

How to Run

Open the notebook and run all cells

pip install -r requirements.txt

About

Sales and customer analysis using SQL and Python to extract business insights from e-commerce data.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors