This project analyzes product and branch performance based on monthly sales data, generating visual plots and exporting insights to an Excel file.
- Cleans and preprocesses sales data
- Calculates revenue, profit, and margin
- Identifies best and worst products/branches/months
- Generates:
- Line and bar plots
- Written summaries in Excel
- Embedded images and data tables
- Load and clean sales data from a
.csv
file - Map full month names to short ones and order them
- Group data by product, branch, and month
- Save:
- Data tables
- Plots
- Textual reports to different Excel sheets
- Visualizations are created using
matplotlib
andseaborn
- 📊 Excel file
product.xlsx
with:- Tables: revenue & profit per product/branch/month
- Reports: analysis written into separate sheets
- Plots: added as images to Excel
- Python 3.8+
- pandas
- numpy
- matplotlib
- seaborn
- openpyxl
This project is licensed under the MIT License.