This project analyzes monthly product performance using a commercial dataset. The goal is to identify missing values, compute average profits, and detect the most stable products in terms of profit across months.
The project performs the following key tasks:
- Loads and cleans the dataset.
- Detects missing values in numerical columns (
Revenue,Cost,Profit,Margin(%)). - Calculates average monthly profit per product.
- Completes missing MonthβProduct combinations with zero profit where needed.
- Builds a pivot table to show monthly profit trends for each product.
- Identifies the top 3 most stable products based on standard deviation of monthly profit.
- Visualizes the result using a heatmap.
Below is the heatmap showing the average monthly profit for each product:
monthly_product_performance.csvβ Input datasetanalysis_script.pyβ Python script containing the full analysismonthly_product_profit_matrix.pngβ Output heatmap visualization
This project is licensed under the MIT License. See the LICENSE file for more details.
