๐ 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.
- 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
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 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.
- 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
| 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 |
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
The dataset contains transactional sales records.
| 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 |
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
The analysis includes:
- Revenue Analysis
- Customer Analysis
- Product Analysis
- Category Analysis
- Monthly Revenue Trend
- Quantity Analysis
- Discount Analysis
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
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)
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)
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?
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
Add your screenshots inside the visuals/ folder.
visuals/01_Revenue_by_Category.png
visuals/02_Monthly_Revenue_Trend.png
visuals/03_Revenue_Share.png
visuals/04_Top_Customers.png
visuals/Dashboard.png
Clone the repository:
git clone https://github.com/YOUR_USERNAME/01-sales-analysis.gitMove into the project folder:
cd 01-sales-analysisInstall dependencies:
pip install -r requirements.txtRun Data Cleaning:
python src/01_data_cleaning.pyRun Analysis:
python src/02_sales_analysis.pyGenerate Visualizations:
python src/03_data_visualization.pyGenerate Business Report:
python src/04_business_report.pyRaw Sales Data
โ
โผ
Data Cleaning
โ
โผ
Exploratory Data Analysis
โ
โผ
Business KPI Generation
โ
โผ
Data Visualization
โ
โผ
Business Insights
โ
โผ
Executive Report Generation
- Python Programming
- Pandas
- NumPy
- Data Cleaning
- Exploratory Data Analysis
- Business Analytics
- Data Visualization
- Automated Reporting
- Git & GitHub
- Problem Solving
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.
- Interactive Streamlit Dashboard
- Power BI Dashboard
- SQL Integration
- Sales Forecasting
- Customer Segmentation (RFM Analysis)
- Profit Margin Analysis
- Regional Sales Dashboard
- Automated Email Reporting
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
Akash Kumar
B.Tech (Artificial Intelligence & Machine Learning)
Aspiring Data Analyst
- Python
- SQL
- Excel
- Power BI
- Pandas
- NumPy
- Matplotlib
- Git & GitHub
- GitHub: https://github.com/Akash82945
- LinkedIn: https://linkedin.com/in/akash82945
If you found this project useful, consider giving it a โญ on GitHub.
Feedback and suggestions are always welcome!