Skip to content

Sales data analysis project using Python (Pandas & Nunpy & Matplotlib)

Notifications You must be signed in to change notification settings

mohamedheta/sales-data-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“Š Sales Analysis Project

πŸ” Project Overview

This project analyzes sales data to uncover insights about revenue, performance across regions, and trends over time.
It was developed in Python (Jupyter Notebook) using Pandas and Matplotlib for data analysis and visualization.
The main goal is to make data speak clearly β€” #MAKE_DATA_TALK πŸš€


πŸ“‚ Dataset

  • File: large_sales_data.csv
  • Columns include:
    • Date – Transaction date
    • Region – Geographic region
    • SalesPerson – Sales representative
    • Product – Product sold
    • UnitsSold – Number of units sold
    • UnitPrice – Price per unit

🧹 Data Cleaning & Preparation

  • Checked data types for each column
  • Converted Date column to datetime format
  • Verified no missing values (all columns clean βœ…)
  • Calculated a new column TotalRevenue = UnitsSold * UnitPrice

πŸ“ˆ Data Analysis & Visualizations

Key insights and visuals created using Matplotlib:

  1. Average Units Sold per Region – using groupby() and .mean()
  2. Total Revenue per Region – using .sum() and visualized as a Pie Chart
  3. Daily Revenue Trend – plotted as a Line Chart to observe changes over time

🧭 Key Visuals:

  • Pie Chart β†’ Revenue distribution per region
  • Line Chart β†’ Total daily revenue trend

🧠 Insights

  • The highest revenue was generated in top-performing regions (identified through the pie chart).
  • Daily revenue trend shows fluctuations and peaks on specific dates β€” useful for forecasting and sales planning.
  • Clean data ensured accurate aggregation and visualization.

βš™οΈ Tools & Libraries Used

  • Python 3
  • Pandas
  • Matplotlib
  • Jupyter Notebook

πŸ—‚οΈ Project Structure

Sales Analysis Project/
β”‚
β”œβ”€β”€ sales_analysis_project.ipynb      # Main notebook (code & analysis)
β”œβ”€β”€ sales_analysis_project.html       # Exported HTML version for viewing
β”œβ”€β”€ data/
β”‚   └── large_sales_data.csv          # Original dataset
└── README.md                         # Project documentation

🌐 How to View

  • Open the .ipynb notebook in Jupyter for interactive exploration.
  • Or view the HTML version directly in your browser.
  • You can also preview it online using nbviewer:
    πŸ‘‰ https://nbviewer.org

πŸ’¬ Author

Mohamed Heta
Data Analyst | Power BI | Python | SQL
Hashtags: #MAKE_DATA_TALK #Ω…ΨΉΩ„ΩˆΩ…Ψ©_في_Ψ§Ω„Ψ³ΩƒΨ©

About

Sales data analysis project using Python (Pandas & Nunpy & Matplotlib)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published