π― Project: Sales Analysis from Excel Using pandas & matplotlib
π Objective
-
Read sales data from Excel
-
Clean the data
-
Analyze monthly performance
-
Create graphs using matplotlib
-
Save processed data back to Excel
π Sample Excel File (sales.xlsx)
Your Excel file may look like this:
| Month | Sales |
|---|---|
| Jan | 12000 |
| Feb | 15000 |
| Mar | 18000 |
| Apr | 16000 |
| May | 20000 |
| Jun | 22000 |
| Jul | 21000 |
| Aug | 25000 |
| Sep | 23000 |
| Oct | 24000 |
| Nov | 26000 |
| Dec | 30000 |
Save as sales.xlsx.
✅ Step 1: Read Excel File
✅ Step 2: Check for missing values
Fill missing values with 0 (if any):
✅ Step 3: Basic Analysis
✔ Total yearly sales
✔ Highest & lowest month
π Step 4: Create Charts using matplotlib
Import library
π Line Chart – Monthly Sales Trend
π Bar Chart
π₯§ Pie Chart
π Step 5: Save Results Back to Excel
No comments:
Post a Comment