This project analyzes and visualizes bakery sales data using Python's Pandas and Matplotlib libraries. The goal is to explore transaction patterns, revenue, and product performance based on the dataset.
The dataset used for this analysis is from Kaggle. It contains information about transactions in a bakery, including the date and time of each transaction, the ticket number, the product sold, the quantity sold, and the unit price.
You can find it at the following link: https://www.kaggle.com/datasets/matthieugimbert/french-bakery-daily-sales.
Make sure you have the following Python packages installed:
pandas
matplotlib
You can install the required packages using pip:
pip install pandas matplotlib
- Clone this repository to your local machine.
- Run the script:
python3 bakery_sales_analysis.py
The script generates various plots, including:
- Top products by revenue;
- Sales quantity and revenue over time;
- Sales frequency by hour and day;
- Distribution of quantity sold and total price per transaction;
- Distribution of unit prices;
You can find these plots in the graphs
directory.