This project performs exploratory data analysis on a product sales dataset using Python. The goal is to extract useful business insights from sales data and visualize patterns such as revenue distribution, profit by region, product performance, and monthly trends.
The analysis uses the Pandas library for data processing and Matplotlib for data visualization.
- Load and inspect the sales dataset
- Data cleaning and preprocessing
- Summary statistics of sales data
- Revenue and profit analysis
- Sales performance by category and region
- Monthly revenue trend visualization
- Top products by revenue
- Quantity distribution analysis
- Identification of top customers
- Export processed dataset for further use
- Python
- Pandas
- Matplotlib
The dataset used for this project is publicly available on Kaggle.
Download the dataset from:
https://www.kaggle.com/datasets/yashyennewar/product-sales-dataset-2023-2024
After downloading the dataset, place the CSV file in the project directory before running the script.
Expected dataset file name:
product_sales_dataset_final.csv
sales-data-analysis-python/ │ ├── sales_analysis.py ├── README.md └── requirements.txt
The analysis generates several visualizations including:
- Revenue by Product Category (Bar Chart)
- Profit by Region (Bar Chart)
- Monthly Revenue Trend (Line Chart)
- Top 10 Products by Revenue (Bar Chart)
- Quantity Distribution (Histogram)
- Sales Distribution by Region (Pie Chart)
These visualizations help understand overall business performance and trends.
The project helps identify:
- Categories generating the highest revenue
- Regions producing the highest profit
- Top performing products
- Monthly revenue patterns
- Distribution of product quantities sold
- Top customers contributing to revenue
Install required libraries before running the project.
pip install pandas matplotlib
Or install from requirements file:
pip install -r requirements.txt
- Download the dataset from Kaggle.
- Place the dataset file in the project folder.
- Install required dependencies.
- Run the Python script.
python sales_analysis.py
The script will:
- Analyze the dataset
- Generate visualizations
- Save a processed dataset file.
After running the script, a processed dataset file will be created:
processed_sales_data.csv
This file contains the cleaned and processed data used in the analysis.
Possible enhancements for the project include:
- Interactive dashboards using Plotly or Streamlit
- Machine learning models for sales prediction
- Automated reporting
- Advanced customer segmentation analysis
Deepak B.Tech Computer Science Engineering Student Sharda University
Interested in data analysis, software development, and building technology projects.