Average monthly concentration of key air pollutants.
0 views·0 downloads
This dataset presents monthly concentrations of various air pollutants, including carbon monoxide (CO), nitrogen dioxide (NO²), ozone (O³), particulate matter (PM₁₀, PM₂.₅), and sulfur dioxide (SO²). The data is tabulated from hourly observational data collected from monitoring stations across Malaysia.
A small minority of values in 2017 are null due to inavailability of data.
—
Average monthly concentration of key air pollutants.
Name in Dataset | Variable | Definition |
---|---|---|
date (Date) | Date | The date in YYYY-MM-DD format, with DD set to 01 as the data is at monthly frequency. |
pollutant (Categorical) | Pollutant | The type of air pollutant ('CO', 'NO²', 'O³', 'PM₁₀', 'PM₂.₅', 'SO²'). |
concentration (Float) | Concentration | The concentration of the pollutant in parts per million (ppm) or micrograms per cubic meter (µg/m³). All pollutants are measured in ppm except for PM₁₀ and PM₂.₅, which are measured in µg/m³. |
27 Nov 2023, 12:00
27 Nov 2024, 12:00
This data is made open under the Creative Commons Attribution 4.0 International License (CC BY 4.0). A copy of the license is available Here.
Full Dataset (CSV)
Recommended for individuals seeking an Excel-friendly format.
0
Full Dataset (Parquet)
Recommended for data scientists seeking to work with data via code.
0
Connect directly to the data with Python.
# If not already installed, do: pip install pandas fastparquet
import pandas as pd
URL_DATA = 'https://storage.data.gov.my/environment/air_pollution.parquet'
df = pd.read_parquet(URL_DATA)
if 'date' in df.columns: df['date'] = pd.to_datetime(df['date'])
print(df)
The following code is an example of how to make an API query to retrieve the data catalogue mentioned above. You can use different programming languages by switching the code accordingly. For a complete guide on possible query parameters and syntax, please refer to the official Open API Documentation.
import requests
import pprint
url = "https://api.data.gov.my/data-catalogue?id=air_pollution&limit=3"
response_json = requests.get(url=url).json()
pprint.pprint(response_json)
Department of Statistics Malaysia
© 2024 Public Sector Open Data
Open Data
data.gov.my