Skip to content

Latest commit

 

History

History

README.md

# Weather and Air Pollution for the 3 Biggest Cities per Country

This dataset contains current weather and current air pollution measurements for the 3 biggest cities per country, selected by GeoNames city population.

Sources

  • OpenWeather Current Weather API
  • OpenWeather Air Pollution API
  • GeoNames cities15000 dump
  • GeoNames countryInfo

Collection settings

  • Units: metric
  • Language: en
  • Top cities per country: 3
  • Minimum city population in source selection: 15000
  • Generated at: 2026-04-24T07:07:49.156595+00:00

Main target columns

  • aqi
  • pm2_5
  • pm10

Example ML tasks

  • multiclass classification: predict aqi
  • regression: predict pm2_5
  • regression: predict pm10

Content Each row represents a single observation for a specific city at a given time.

🌦 Weather Features Temperature: temp, feels_like, temp_min, temp_max Atmospheric conditions: pressure, humidity Wind: wind_speed, wind_deg, wind_gust Clouds and visibility: clouds_all, visibility Precipitation: rain_1h, rain_3h, snow_1h, snow_3h Sun data: sunrise_utc, sunset_utc 🌫 Air Pollution Measurements aqi — Air Quality Index (scale 1–5) pm2_5 — PM2.5 concentration pm10 — PM10 concentration Other pollutants: co, no, no2, o3, so2, nh3

🌍 Location and Metadata country_name, country_code, continent city_name, city_population geo_lat, geo_lon

🧠 Derived Features temp_category wind_compass is_daytime comfort_proxy has_rain, has_snow

⏱ Time Features weather_time_utc collection_time_utc year, month, day, hour day_of_week, is_weekend season

🎯 Target Columns target_aqi_class — Air Quality Index (1–5), classification target target_pm25 — PM2.5 concentration (µg/m³), regression target target_pm10 — PM10 concentration (µg/m³), regression target

Collection Process Cities are selected using population data from GeoNames Weather data is retrieved via the OpenWeather Current Weather API Air pollution data is retrieved via the OpenWeather Air Pollution API

Use Cases This dataset can be used for: Regression tasks (e.g., predicting PM2.5 or PM10 levels) Classification tasks (e.g., predicting AQI categories) Environmental and urban analysis Feature engineering and exploratory data analysis