A Python project to analyze and visualize Air Quality Index (AQI) data across major Indian cities .
This tool lets you interactively explore air pollution trends across cities like Delhi, Mumbai, Bangalore, Chennai, and Kolkata for the months of October, November, and December 2024.
It tracks key pollutants — PM2.5, PM10, NO2, and SO2 — and helps identify pollution hotspots and seasonal patterns.
| Option | Description |
|---|---|
| Line Plot | AQI trends over days per city |
| Bar Plot | Average AQI comparison across cities |
| Box Plot | AQI distribution and spread per city |
| Pie Chart | Proportional AQI share by city |
| Summary Stats | Mean, max, min AQI + avg PM2.5 / PM10 |
| AQI Categories | Labels each reading (Good → Hazardous) |
aqi-india-analysis/
│
├── aqi_analysis.py # Main script
├── requirements.txt # Python dependencies
└── README.md
git clone https://github.com/YOUR_USERNAME/aqi-india-analysis.git
cd aqi-india-analysispip install -r requirements.txtpython aqi_analysis.pyAvailable months: [10, 11, 12]
Enter a month to process: 10
Available cities: ['Bangalore', 'Chennai', 'Delhi', 'Kolkata', 'Mumbai']
Enter cities to process (comma-separated): Delhi, Mumbai
--- AQI Summary Statistics ---
Average AQI Maximum AQI Minimum AQI Average PM2.5 Average PM10
Delhi 210.47 257.46 155.02 85.09 123.71
Mumbai 174.25 225.10 151.54 69.19 108.69
AQI Category Scale:
| Range | Category |
|---|---|
| 0–50 | 🟢 Good |
| 51–100 | 🟡 Moderate |
| 101–150 | 🟠 Unhealthy for Sensitive Groups |
| 151–200 | 🔴 Unhealthy |
| 201–300 | 🟣 Very Unhealthy |
| 300+ | ⚫ Hazardous |
Data is loaded from a Google Sheets CSV export containing daily AQI readings for 5 Indian cities across 3 months (Oct–Dec 2024).
Columns: Date, City, AQI, PM2.5, PM10