Skip to content

Latest commit

ย 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“Š Sales Analytics using Python

Python Pandas NumPy Matplotlib Git License

๐Ÿš€ An end-to-end Sales Analytics project demonstrating industry-standard Data Cleaning, Exploratory Data Analysis (EDA), Business KPI Analysis, Data Visualization, and Automated Executive Business Report Generation using Python.


๐Ÿ“Œ Table of Contents

  • Project Overview
  • Business Problem
  • Objectives
  • Tech Stack
  • Project Structure
  • Dataset Information
  • Data Cleaning
  • Exploratory Data Analysis
  • Business KPIs
  • Visualizations
  • Business Report
  • Business Insights
  • Business Recommendations
  • Project Screenshots
  • Installation
  • How to Run
  • Project Workflow
  • Skills Demonstrated
  • Resume Project Summary
  • Future Improvements
  • Learning Outcomes
  • Author

๐Ÿ“– Project Overview

Organizations generate thousands of sales transactions every day. Raw transactional data alone provides little business value unless it is cleaned, analyzed, and transformed into actionable insights.

This project demonstrates the complete lifecycle of a real-world Data Analytics project using Python. Starting from raw sales data, the project performs data cleaning, exploratory analysis, KPI calculation, visualization, and automated executive report generation.

The goal is to help business stakeholders make data-driven decisions regarding revenue growth, customer retention, inventory planning, and product performance.


๐Ÿ’ผ Business Problem

Business managers often face questions such as:

  • Which product category generates the highest revenue?
  • Who are the most valuable customers?
  • Which months perform better or worse?
  • Which products should receive higher inventory?
  • How is the business growing over time?

This project answers these questions through automated analysis and reporting.


๐ŸŽฏ Project Objectives

  • Clean raw sales data
  • Handle missing values and duplicates
  • Perform exploratory data analysis
  • Generate business KPIs
  • Analyze customer purchasing behavior
  • Analyze product category performance
  • Identify top-performing products
  • Track monthly revenue growth
  • Generate professional visualizations
  • Automatically create executive business reports

๐Ÿ› ๏ธ Tech Stack

Technology Purpose
Python Programming Language
Pandas Data Cleaning & Analysis
NumPy Numerical Computing
Matplotlib Data Visualization
Tabulate Professional Tables
Markdown Business Report Generation
OpenPyXL Excel Support
Git & GitHub Version Control

๐Ÿ“ Project Structure

01-sales-analysis/
โ”‚
โ”œโ”€โ”€ data/
โ”‚   โ”œโ”€โ”€ Raw_sales.csv
โ”‚   โ””โ”€โ”€ Clean_sales.csv
โ”‚
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ 01_data_cleaning.py
โ”‚   โ”œโ”€โ”€ 02_sales_analysis.py
โ”‚   โ”œโ”€โ”€ 03_data_visualization.py
โ”‚   โ””โ”€โ”€ 04_business_report.py
โ”‚
โ”œโ”€โ”€ visuals/
โ”‚   โ”œโ”€โ”€ 01_Revenue_by_Category.png
โ”‚   โ”œโ”€โ”€ 02_Monthly_Revenue_Trend.png
โ”‚   โ”œโ”€โ”€ 03_Revenue_Share.png
โ”‚   โ”œโ”€โ”€ 04_Top_Customers.png
โ”‚   โ”œโ”€โ”€ 05_Top_Products.png
โ”‚   โ””โ”€โ”€ Dashboard.png
โ”‚
โ”œโ”€โ”€ reports/
โ”‚   โ”œโ”€โ”€ Executive_Business_Report.md
โ”‚   โ””โ”€โ”€ Executive_Business_Report.pdf
โ”‚
โ”œโ”€โ”€ requirements.txt
โ”œโ”€โ”€ LICENSE
โ”œโ”€โ”€ .gitignore
โ””โ”€โ”€ README.md

๐Ÿ“‚ Dataset Information

The dataset contains transactional sales records.

Columns

Column Description
OrderID Unique Order Identifier
OrderDate Date of Purchase
CustomerID Customer Identifier
ProductName Product Name
Category Product Category
Quantity Quantity Purchased
Unit Price Price Per Unit
Discount (%) Discount Applied
Final Amount Final Sales Amount

๐Ÿงน Data Cleaning

The project performs:

  • Removed duplicate records
  • Removed null values
  • Corrected data types
  • Converted dates into DateTime format
  • Standardized column names
  • Removed invalid transactions
  • Exported cleaned dataset

๐Ÿ“Š Exploratory Data Analysis (EDA)

The analysis includes:

  • Revenue Analysis
  • Customer Analysis
  • Product Analysis
  • Category Analysis
  • Monthly Revenue Trend
  • Quantity Analysis
  • Discount Analysis

๐Ÿ“ˆ Business KPIs

The project automatically calculates:

  • Total Revenue
  • Average Order Value
  • Total Orders
  • Unique Customers
  • Total Categories
  • Highest Selling Category
  • Top Customer
  • Top 10 Products
  • Monthly Revenue
  • Month-over-Month Growth
  • Revenue Distribution

๐Ÿ“‰ Visualizations

The project generates:

  • Revenue by Category (Bar Chart)
  • Monthly Revenue Trend (Line Chart)
  • Revenue Share by Category (Pie Chart)
  • Top Customers
  • Top Products
  • Quantity Sold by Category
  • Revenue Distribution (Histogram)
  • Monthly Orders
  • Correlation Heatmap (Optional)

๐Ÿ“„ Automated Business Report

The project automatically generates an Executive Business Report containing:

  • Executive Summary
  • KPI Dashboard
  • Monthly Performance
  • Revenue Analysis
  • Customer Analysis
  • Product Analysis
  • Business Insights
  • Strategic Recommendations
  • Final Conclusion

Output Formats:

  • Markdown (.md)
  • PDF (.pdf)

๐Ÿ’ก Business Insights

The project provides answers to business questions such as:

  • Which category generates the highest revenue?
  • Which customers contribute the highest sales?
  • Which products perform best?
  • Which months experience lower growth?
  • Which business areas require improvement?

๐Ÿš€ Business Recommendations

Based on the analysis, the report recommends:

  • Increase inventory for top-selling categories
  • Reward high-value customers through loyalty programs
  • Improve marketing during slow months
  • Focus promotions on best-selling products
  • Monitor KPIs regularly for continuous improvement

๐Ÿ“ธ Project Screenshots

Add your screenshots inside the visuals/ folder.

Revenue by Category

visuals/01_Revenue_by_Category.png

Monthly Revenue Trend

visuals/02_Monthly_Revenue_Trend.png

Revenue Share

visuals/03_Revenue_Share.png

Top Customers

visuals/04_Top_Customers.png

Dashboard

visuals/Dashboard.png

โš™๏ธ Installation

Clone the repository:

git clone https://github.com/YOUR_USERNAME/01-sales-analysis.git

Move into the project folder:

cd 01-sales-analysis

Install dependencies:

pip install -r requirements.txt

โ–ถ๏ธ How to Run

Run Data Cleaning:

python src/01_data_cleaning.py

Run Analysis:

python src/02_sales_analysis.py

Generate Visualizations:

python src/03_data_visualization.py

Generate Business Report:

python src/04_business_report.py

๐Ÿ”„ Project Workflow

Raw Sales Data
        โ”‚
        โ–ผ
Data Cleaning
        โ”‚
        โ–ผ
Exploratory Data Analysis
        โ”‚
        โ–ผ
Business KPI Generation
        โ”‚
        โ–ผ
Data Visualization
        โ”‚
        โ–ผ
Business Insights
        โ”‚
        โ–ผ
Executive Report Generation

๐Ÿ’ป Skills Demonstrated

  • Python Programming
  • Pandas
  • NumPy
  • Data Cleaning
  • Exploratory Data Analysis
  • Business Analytics
  • Data Visualization
  • Automated Reporting
  • Git & GitHub
  • Problem Solving

๐Ÿ’ผ Resume Project Summary

Developed an end-to-end Sales Analytics project using Python to clean transactional sales data, perform exploratory data analysis, calculate business KPIs, generate insightful visualizations, and automate executive business reporting. The project demonstrates practical experience in data preprocessing, business intelligence, reporting automation, and decision support.


๐Ÿ”ฎ Future Improvements

  • Interactive Streamlit Dashboard
  • Power BI Dashboard
  • SQL Integration
  • Sales Forecasting
  • Customer Segmentation (RFM Analysis)
  • Profit Margin Analysis
  • Regional Sales Dashboard
  • Automated Email Reporting

๐Ÿ“š Learning Outcomes

During this project, I learned:

  • Real-world data cleaning techniques
  • Exploratory Data Analysis (EDA)
  • KPI calculation
  • Business reporting
  • Data visualization
  • Project organization
  • Git & GitHub workflow
  • Business-oriented problem solving

๐Ÿ‘จโ€๐Ÿ’ป Author

Akash Kumar

B.Tech (Artificial Intelligence & Machine Learning)

Aspiring Data Analyst

Skills

  • Python
  • SQL
  • Excel
  • Power BI
  • Pandas
  • NumPy
  • Matplotlib
  • Git & GitHub

Connect


โญ Support

If you found this project useful, consider giving it a โญ on GitHub.

Feedback and suggestions are always welcome!

About

๐Ÿ“Š End-to-End E-Commerce Sales Analytics project using Python, Pandas, NumPy, Matplotlib, Power BI, and Excel. Includes data cleaning, exploratory data analysis (EDA), interactive dashboards, business reports, and actionable insights to support data-driven decision-making.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages