Skip to content

pakhi217/aqi-analysis-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌫️ AQI India Analysis

A Python project to analyze and visualize Air Quality Index (AQI) data across major Indian cities .


📌 About

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.


🚀 Features

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)

🗂️ Project Structure

aqi-india-analysis/
│
├── aqi_analysis.py      # Main script
├── requirements.txt     # Python dependencies
└── README.md

⚙️ Setup & Run

1. Clone the repo

git clone https://github.com/YOUR_USERNAME/aqi-india-analysis.git
cd aqi-india-analysis

2. Install dependencies

pip install -r requirements.txt

3. Run the script

python aqi_analysis.py

4. Follow the prompts

Available 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

📊 Sample Output

--- 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

📦 Dataset

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


🛠️ Built With


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%