Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code:   DatasetGenerationCastError
Exception:    DatasetGenerationCastError
Message:      An error occurred while generating the dataset

All the data files must have the same columns, but at some point there are 3 new columns ({'column', 'description', 'data_type'}) and 39 missing columns ({'us_aqi', 'latitude', 'us_aqi_nitrogen_dioxide', 'elevation_m', 'hour', 'pm10', 'european_aqi_pm2_5', 'us_aqi_pm10', 'uv_index_clear_sky', 'pm2_5', 'date', 'uv_index', 'ammonia', 'timestamp_utc', 'is_weekend', 'us_aqi_sulphur_dioxide', 'city', 'month', 'dust', 'aerosol_optical_depth', 'is_who_pm25_exceeded', 'us_aqi_pm2_5', 'european_aqi_nitrogen_dioxide', 'day', 'us_aqi_ozone', 'nitrogen_dioxide', 'aqi_band', 'european_aqi_ozone', 'ozone', 'year', 'weekday', 'european_aqi_pm10', 'european_aqi_sulphur_dioxide', 'carbon_monoxide', 'iso2', 'sulphur_dioxide', 'european_aqi', 'longitude', 'country'}).

This happened while the csv dataset builder was generating data using

hf://datasets/EduDevCommons/global-air-quality-hourly/data_dictionary.csv (at revision 464d44a30b750698c6964475575ad78543eb6268), ['hf://datasets/EduDevCommons/global-air-quality-hourly@464d44a30b750698c6964475575ad78543eb6268/air_quality_hourly.csv', 'hf://datasets/EduDevCommons/global-air-quality-hourly@464d44a30b750698c6964475575ad78543eb6268/data_dictionary.csv']

Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1856, in _prepare_split_single
                  writer.write_table(table)
                  ~~~~~~~~~~~~~~~~~~^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 811, in write_table
                  self._write_table(pa_table, writer_batch_size=writer_batch_size)
                  ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 822, in _write_table
                  pa_table = table_cast(pa_table, self._schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2394, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2322, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              column: string
              data_type: string
              description: string
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 630
              to
              {'city': Value('string'), 'country': Value('string'), 'iso2': Value('string'), 'latitude': Value('float64'), 'longitude': Value('float64'), 'elevation_m': Value('float64'), 'timestamp_utc': Value('string'), 'date': Value('string'), 'year': Value('int64'), 'month': Value('int64'), 'day': Value('int64'), 'hour': Value('int64'), 'weekday': Value('string'), 'pm10': Value('float64'), 'pm2_5': Value('float64'), 'carbon_monoxide': Value('float64'), 'nitrogen_dioxide': Value('float64'), 'sulphur_dioxide': Value('float64'), 'ozone': Value('float64'), 'dust': Value('float64'), 'ammonia': Value('float64'), 'aerosol_optical_depth': Value('float64'), 'uv_index': Value('float64'), 'uv_index_clear_sky': Value('float64'), 'european_aqi': Value('int64'), 'european_aqi_pm2_5': Value('int64'), 'european_aqi_pm10': Value('int64'), 'european_aqi_nitrogen_dioxide': Value('int64'), 'european_aqi_ozone': Value('int64'), 'european_aqi_sulphur_dioxide': Value('int64'), 'us_aqi': Value('int64'), 'us_aqi_pm2_5': Value('int64'), 'us_aqi_pm10': Value('int64'), 'us_aqi_nitrogen_dioxide': Value('int64'), 'us_aqi_ozone': Value('int64'), 'us_aqi_sulphur_dioxide': Value('int64'), 'aqi_band': Value('string'), 'is_who_pm25_exceeded': Value('bool'), 'is_weekend': Value('bool')}
              because column names don't match
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1379, in compute_config_parquet_and_info_response
                  parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
                                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      builder, max_dataset_size_bytes=max_dataset_size_bytes
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 956, in stream_convert_to_parquet
                  builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
                  ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1702, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~^
                      gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  ):
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1858, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
                  ...<4 lines>...
                  )
              datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
              
              All the data files must have the same columns, but at some point there are 3 new columns ({'column', 'description', 'data_type'}) and 39 missing columns ({'us_aqi', 'latitude', 'us_aqi_nitrogen_dioxide', 'elevation_m', 'hour', 'pm10', 'european_aqi_pm2_5', 'us_aqi_pm10', 'uv_index_clear_sky', 'pm2_5', 'date', 'uv_index', 'ammonia', 'timestamp_utc', 'is_weekend', 'us_aqi_sulphur_dioxide', 'city', 'month', 'dust', 'aerosol_optical_depth', 'is_who_pm25_exceeded', 'us_aqi_pm2_5', 'european_aqi_nitrogen_dioxide', 'day', 'us_aqi_ozone', 'nitrogen_dioxide', 'aqi_band', 'european_aqi_ozone', 'ozone', 'year', 'weekday', 'european_aqi_pm10', 'european_aqi_sulphur_dioxide', 'carbon_monoxide', 'iso2', 'sulphur_dioxide', 'european_aqi', 'longitude', 'country'}).
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/EduDevCommons/global-air-quality-hourly/data_dictionary.csv (at revision 464d44a30b750698c6964475575ad78543eb6268), ['hf://datasets/EduDevCommons/global-air-quality-hourly@464d44a30b750698c6964475575ad78543eb6268/air_quality_hourly.csv', 'hf://datasets/EduDevCommons/global-air-quality-hourly@464d44a30b750698c6964475575ad78543eb6268/data_dictionary.csv']
              
              Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

city
string
country
string
iso2
string
latitude
float64
longitude
float64
elevation_m
float64
timestamp_utc
string
date
string
year
int64
month
int64
day
int64
hour
int64
weekday
string
pm10
float64
pm2_5
float64
carbon_monoxide
float64
nitrogen_dioxide
float64
sulphur_dioxide
float64
ozone
float64
dust
float64
ammonia
null
aerosol_optical_depth
float64
uv_index
float64
uv_index_clear_sky
float64
european_aqi
int64
european_aqi_pm2_5
int64
european_aqi_pm10
int64
european_aqi_nitrogen_dioxide
int64
european_aqi_ozone
int64
european_aqi_sulphur_dioxide
int64
us_aqi
int64
us_aqi_pm2_5
int64
us_aqi_pm10
int64
us_aqi_nitrogen_dioxide
int64
us_aqi_ozone
int64
us_aqi_sulphur_dioxide
int64
aqi_band
string
is_who_pm25_exceeded
bool
is_weekend
bool
Delhi
India
IN
28.6139
77.209
214
2024-01-01 00:00
2024-01-01
2,024
1
1
0
Monday
128.1
88.9
1,315
35.6
28.1
31
2
null
0.44
0
0
79
79
62
46
10
28
191
191
105
18
8
15
poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-01 01:00
2024-01-01
2,024
1
1
1
Monday
126.2
87.8
1,393
36.3
31
27
2
null
0.44
0
0
79
79
62
46
9
31
190
190
104
18
9
17
poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-01 02:00
2024-01-01
2,024
1
1
2
Monday
131.8
91.5
1,497
37.1
35
24
1
null
0.45
0.05
0.05
81
81
63
47
8
35
189
189
103
18
10
19
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-01 03:00
2024-01-01
2,024
1
1
3
Monday
134.1
93.1
1,548
37.3
37.8
31
1
null
0.46
0.25
0.4
81
81
64
47
10
38
189
189
102
18
11
21
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-01 04:00
2024-01-01
2,024
1
1
4
Monday
136.9
95.2
1,514
36.7
37.4
59
1
null
0.48
0.75
1.2
82
82
65
47
20
37
188
188
101
18
12
20
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-01 05:00
2024-01-01
2,024
1
1
5
Monday
131.8
91.7
1,427
35.5
35.8
98
2
null
0.53
1.45
2.15
81
81
63
46
39
36
187
187
100
17
14
20
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-01 06:00
2024-01-01
2,024
1
1
6
Monday
125.7
87.3
1,304
33.2
37.2
132
2
null
0.52
2.6
2.85
79
79
62
45
66
37
186
186
100
16
19
20
poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-01 07:00
2024-01-01
2,024
1
1
7
Monday
109.9
75.7
1,104
27.6
45.4
161
2
null
0.45
3.1
3.2
81
73
57
41
81
41
186
186
99
14
25
25
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-01 08:00
2024-01-01
2,024
1
1
8
Monday
92
62.9
867
21
56.5
184
2
null
0.43
2.75
2.75
104
66
53
35
104
44
185
185
99
10
33
31
extremely poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-01 09:00
2024-01-01
2,024
1
1
9
Monday
85
57.5
730
19.7
63.8
192
2
null
0.4
1.8
1.8
112
64
51
33
112
46
185
185
99
10
42
35
extremely poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-01 10:00
2024-01-01
2,024
1
1
10
Monday
83.8
56.6
742
27.5
62.2
173
2
null
0.38
0.85
0.85
93
63
50
41
93
45
185
185
98
14
54
34
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-01 11:00
2024-01-01
2,024
1
1
11
Monday
85
57.4
854
40.6
56.7
138
2
null
0.36
0.2
0.2
69
64
51
49
69
44
185
185
98
20
86
31
poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-01 12:00
2024-01-01
2,024
1
1
12
Monday
136
91.5
970
50.8
49.9
90
4
null
0.56
0
0
81
81
64
55
35
42
184
184
98
25
108
27
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-01 13:00
2024-01-01
2,024
1
1
13
Monday
153.7
104.3
1,223
58.1
57.6
71
4
null
0.5
0
0
86
86
69
59
26
44
185
185
98
29
115
31
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-01 14:00
2024-01-01
2,024
1
1
14
Monday
170.4
116.2
1,580
68.2
68.5
45
3
null
0.47
0
0
90
90
73
64
15
47
185
185
98
34
109
37
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-01 15:00
2024-01-01
2,024
1
1
15
Monday
189.5
129.9
1,900
76.1
77.9
24
3
null
0.45
0
0
96
96
79
68
8
49
184
184
97
37
91
42
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-01 16:00
2024-01-01
2,024
1
1
16
Monday
207.7
142.5
2,176
80.8
86.4
14
3
null
0.45
0
0
101
101
83
70
5
51
184
184
97
40
62
47
extremely poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-01 17:00
2024-01-01
2,024
1
1
17
Monday
222.6
153.2
2,415
83.3
93.5
11
3
null
0.45
0
0
105
105
87
72
4
53
183
183
97
41
43
51
extremely poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-01 18:00
2024-01-01
2,024
1
1
18
Monday
223.1
154.1
2,503
81.9
93.4
10
3
null
0.47
0
0
106
106
87
71
3
53
183
183
97
40
33
51
extremely poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-01 19:00
2024-01-01
2,024
1
1
19
Monday
204.9
141.6
2,339
74.3
80.6
13
3
null
0.48
0
0
101
101
83
67
4
50
183
183
96
37
23
44
extremely poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-01 20:00
2024-01-01
2,024
1
1
20
Monday
184.4
127.6
2,024
62.9
60.7
18
2
null
0.49
0
0
95
95
77
61
6
45
183
183
96
31
16
33
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-01 21:00
2024-01-01
2,024
1
1
21
Monday
165.8
114.8
1,747
52.4
44.5
24
2
null
0.49
0
0
90
90
72
56
8
41
183
183
96
26
12
24
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-01 22:00
2024-01-01
2,024
1
1
22
Monday
151.3
105
1,559
44.1
36.1
29
2
null
0.52
0
0
86
86
68
51
10
36
183
183
96
22
9
20
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-01 23:00
2024-01-01
2,024
1
1
23
Monday
140.6
97.6
1,410
36.9
31.3
33
1
null
0.54
0
0
83
83
65
47
11
31
183
183
96
18
8
17
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-02 00:00
2024-01-02
2,024
1
2
0
Tuesday
129.9
90.6
1,246
28.2
25.1
44
1
null
0.63
0
0
80
80
63
42
15
25
182
182
96
14
9
14
poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-02 01:00
2024-01-02
2,024
1
2
1
Tuesday
114.6
79.4
1,200
26.3
26.4
54
1
null
0.65
0
0
75
75
59
41
18
26
183
183
96
13
11
14
poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-02 02:00
2024-01-02
2,024
1
2
2
Tuesday
116.9
81.3
1,135
23.8
28.4
69
1
null
0.69
0.05
0.05
76
76
59
38
25
28
182
182
96
12
13
15
poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-02 03:00
2024-01-02
2,024
1
2
3
Tuesday
112.5
77.8
1,077
21.9
31.1
83
1
null
0.72
0.25
0.4
74
74
58
36
32
31
182
182
95
11
16
17
poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-02 04:00
2024-01-02
2,024
1
2
4
Tuesday
112
77.5
1,035
21.4
35
94
1
null
0.71
0.75
1.15
74
74
58
35
37
35
182
182
95
11
21
19
poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-02 05:00
2024-01-02
2,024
1
2
5
Tuesday
110.1
75.7
999
21.5
39.6
106
2
null
0.66
1.6
2.15
73
73
57
35
46
40
181
181
94
11
25
22
poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-02 06:00
2024-01-02
2,024
1
2
6
Tuesday
108.7
74.5
967
21.6
43.9
120
2
null
0.59
2.65
3
72
72
57
35
60
41
181
181
94
11
30
24
poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-02 07:00
2024-01-02
2,024
1
2
7
Tuesday
108.3
74
924
20
47.8
145
2
null
0.55
3.2
3.3
73
72
57
33
73
42
180
180
94
10
35
26
poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-02 08:00
2024-01-02
2,024
1
2
8
Tuesday
106.2
72.4
885
18.4
51.4
172
2
null
0.47
2.85
2.9
92
71
56
31
92
43
180
180
94
9
41
28
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-02 09:00
2024-01-02
2,024
1
2
9
Tuesday
105
71.2
896
20.9
53.8
184
2
null
0.45
1.9
1.95
104
71
56
35
104
43
180
180
94
10
49
29
extremely poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-02 10:00
2024-01-02
2,024
1
2
10
Tuesday
105.2
71.5
957
30.2
53.1
169
2
null
0.43
0.9
0.9
89
71
56
43
89
43
181
181
94
15
74
29
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-02 11:00
2024-01-02
2,024
1
2
11
Tuesday
106.4
72.4
1,069
43.5
51.2
138
1
null
0.42
0.25
0.25
71
71
56
51
69
43
181
181
95
21
95
28
poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-02 12:00
2024-01-02
2,024
1
2
12
Tuesday
131.3
89.9
1,275
58.7
54.4
107
1
null
0.51
0
0
80
80
63
59
47
43
182
182
95
29
106
30
poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-02 13:00
2024-01-02
2,024
1
2
13
Tuesday
174.2
120.1
1,762
73.5
70.2
80
1
null
0.49
0
0
92
92
74
67
30
47
182
182
95
36
109
38
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-02 14:00
2024-01-02
2,024
1
2
14
Tuesday
209.5
144.8
2,430
93.7
91.6
43
1
null
0.5
0
0
102
102
84
77
14
52
182
182
95
46
104
50
extremely poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-02 15:00
2024-01-02
2,024
1
2
15
Tuesday
229.1
158.3
2,899
106.5
104.6
16
1
null
0.53
0
0
107
107
89
83
5
55
183
183
96
53
87
56
extremely poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-02 16:00
2024-01-02
2,024
1
2
16
Tuesday
236.6
163.4
2,996
105.9
102.4
8
1
null
0.56
0
0
109
109
91
82
3
55
184
184
97
53
60
55
extremely poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-02 17:00
2024-01-02
2,024
1
2
17
Tuesday
233.3
161.6
2,895
97.8
91.7
11
1
null
0.59
0
0
109
109
90
79
4
52
184
184
98
48
43
50
extremely poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-02 18:00
2024-01-02
2,024
1
2
18
Tuesday
218.9
151.8
2,740
88
79.2
14
1
null
0.63
0
0
105
105
86
74
5
49
185
185
98
43
33
43
extremely poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-02 19:00
2024-01-02
2,024
1
2
19
Tuesday
201.2
140.2
2,542
76.9
65.1
16
1
null
0.66
0
0
100
100
82
68
5
46
185
185
98
38
24
35
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-02 20:00
2024-01-02
2,024
1
2
20
Tuesday
189.5
131.8
2,291
63.9
49.1
19
0
null
0.71
0
0
97
97
79
62
6
42
185
185
98
31
17
27
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-02 21:00
2024-01-02
2,024
1
2
21
Tuesday
181.6
126.7
2,098
53
37.1
22
0
null
0.75
0
0
95
95
76
56
7
37
185
185
98
26
12
20
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-02 22:00
2024-01-02
2,024
1
2
22
Tuesday
177.9
124.3
1,996
45.4
31.8
24
0
null
0.78
0
0
94
94
75
52
8
32
185
185
98
22
9
17
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-02 23:00
2024-01-02
2,024
1
2
23
Tuesday
179.3
124.8
1,952
39.9
30.5
27
0
null
0.82
0
0
94
94
76
49
9
31
186
186
99
20
8
17
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-03 00:00
2024-01-03
2,024
1
3
0
Wednesday
172.8
120.6
1,737
30.3
23.5
38
0
null
1.05
0
0
92
92
74
43
13
24
186
186
100
15
8
13
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-03 01:00
2024-01-03
2,024
1
3
1
Wednesday
171.4
119.7
1,752
31.2
25.7
39
0
null
1.09
0
0
92
92
74
44
13
26
187
187
100
15
10
14
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-03 02:00
2024-01-03
2,024
1
3
2
Wednesday
172.8
120.6
1,767
32.5
29.1
43
0
null
1.13
0
0.05
92
92
74
44
14
29
189
189
102
16
12
16
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-03 03:00
2024-01-03
2,024
1
3
3
Wednesday
174.6
121.5
1,747
33.2
33.7
54
0
null
1.18
0.15
0.35
93
93
75
45
18
34
190
190
103
16
13
18
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-03 04:00
2024-01-03
2,024
1
3
4
Wednesday
171.8
119.7
1,667
33.3
40.1
78
0
null
1.24
0.45
0.9
92
92
74
45
29
40
191
191
104
16
15
22
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-03 05:00
2024-01-03
2,024
1
3
5
Wednesday
176
122.5
1,552
32.8
47.8
110
0
null
1.3
1.05
1.65
93
93
75
44
50
42
192
192
105
16
19
26
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-03 06:00
2024-01-03
2,024
1
3
6
Wednesday
156.5
108.3
1,432
31.4
54.7
144
1
null
1.04
1.85
2.4
87
87
70
44
72
43
194
194
107
15
24
30
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-03 07:00
2024-01-03
2,024
1
3
7
Wednesday
131.8
89.4
1,285
26.6
60.5
185
3
null
0.9
2.7
2.85
105
80
63
41
105
45
195
195
108
13
31
33
extremely poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-03 08:00
2024-01-03
2,024
1
3
8
Wednesday
131.3
88.7
1,135
20.7
65.7
228
5
null
0.81
2.5
2.55
148
79
63
34
148
46
195
195
108
10
40
36
extremely poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-03 09:00
2024-01-03
2,024
1
3
9
Wednesday
131.3
88
1,081
20.9
69.2
249
6
null
0.78
1.65
1.7
169
79
63
35
169
47
196
196
109
10
103
38
extremely poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-03 10:00
2024-01-03
2,024
1
3
10
Wednesday
131.8
88.2
1,182
31.9
70.3
232
6
null
0.75
0.8
0.8
152
79
63
44
152
47
196
196
109
16
99
38
extremely poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-03 11:00
2024-01-03
2,024
1
3
11
Wednesday
134.1
89.6
1,380
48.9
69.7
193
6
null
0.73
0.2
0.2
113
80
64
54
113
47
197
197
110
24
139
38
extremely poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-03 12:00
2024-01-03
2,024
1
3
12
Wednesday
153.2
103.1
1,437
58.7
55.5
118
5
null
0.83
0
0
85
85
69
59
58
44
197
197
110
29
164
30
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-03 13:00
2024-01-03
2,024
1
3
13
Wednesday
183.5
124.3
1,646
65.9
57.9
94
5
null
0.8
0
0
94
94
77
63
37
44
197
197
111
32
170
32
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-03 14:00
2024-01-03
2,024
1
3
14
Wednesday
193.2
131.8
1,936
75.7
61.3
61
4
null
0.77
0
0
97
97
80
68
21
45
198
198
111
37
168
33
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-03 15:00
2024-01-03
2,024
1
3
15
Wednesday
197.9
135.5
2,166
81.9
63.8
35
4
null
0.74
0
0
98
98
81
71
12
46
197
197
111
40
154
35
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-03 16:00
2024-01-03
2,024
1
3
16
Wednesday
202.1
138.8
2,290
81.7
65.8
25
4
null
0.74
0
0
100
100
82
71
8
46
197
197
110
40
124
36
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-03 17:00
2024-01-03
2,024
1
3
17
Wednesday
207.2
143
2,355
77.9
67
22
3
null
0.74
0
0
101
101
83
69
7
46
196
196
109
38
81
37
extremely poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-03 18:00
2024-01-03
2,024
1
3
18
Wednesday
207.2
143.4
2,358
72.5
64.8
21
3
null
0.74
0
0
101
101
83
66
7
46
195
195
109
36
45
35
extremely poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-03 19:00
2024-01-03
2,024
1
3
19
Wednesday
197
136
2,272
65.5
56.3
21
3
null
0.76
0
0
98
98
81
63
7
44
195
195
109
32
33
31
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-03 20:00
2024-01-03
2,024
1
3
20
Wednesday
186.7
129
2,124
56.9
44.4
22
2
null
0.77
0
0
96
96
78
58
7
41
195
195
108
28
23
24
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-03 21:00
2024-01-03
2,024
1
3
21
Wednesday
177
122.5
1,992
48.6
34.6
25
2
null
0.79
0
0
93
93
75
53
8
35
195
195
108
24
17
19
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-03 22:00
2024-01-03
2,024
1
3
22
Wednesday
168.1
116.6
1,884
40.1
29
29
2
null
0.81
0
0
91
91
73
49
10
29
195
195
108
20
13
16
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-03 23:00
2024-01-03
2,024
1
3
23
Wednesday
161.1
112
1,791
32
25.5
34
2
null
0.86
0
0
89
89
71
44
11
26
194
194
108
16
12
14
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-04 00:00
2024-01-04
2,024
1
4
0
Thursday
159.7
111.1
1,790
26.2
27.3
35
1
null
0.89
0
0
88
88
71
41
12
27
194
194
108
13
12
15
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-04 01:00
2024-01-04
2,024
1
4
1
Thursday
163.4
113.9
1,912
29
28.8
30
1
null
0.9
0
0
90
90
72
42
10
29
194
194
107
14
12
16
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-04 02:00
2024-01-04
2,024
1
4
2
Thursday
171.8
119.7
2,074
32.6
31
26
1
null
0.97
0.05
0.05
92
92
74
44
9
31
194
194
107
16
13
17
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-04 03:00
2024-01-04
2,024
1
4
3
Thursday
176
122.5
2,148
34
32.7
32
1
null
1.04
0.2
0.35
93
93
75
45
11
33
194
194
107
17
13
18
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-04 04:00
2024-01-04
2,024
1
4
4
Thursday
174.6
121.5
2,062
31
33
59
1
null
1.18
0.55
0.9
93
93
75
43
20
33
194
194
107
15
14
18
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-04 05:00
2024-01-04
2,024
1
4
5
Thursday
170
117.8
1,889
25.7
32.9
98
2
null
1.29
1.15
1.5
91
91
73
40
39
33
194
194
107
13
16
18
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-04 06:00
2024-01-04
2,024
1
4
6
Thursday
160.7
111.1
1,714
21.3
34.1
131
2
null
1.27
1.8
2.1
88
88
71
35
66
34
194
194
107
10
20
19
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-04 07:00
2024-01-04
2,024
1
4
7
Thursday
148.5
101.3
1,538
17.5
37.9
157
2
null
1.19
2.1
2.35
85
85
68
30
79
38
194
194
107
9
26
21
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-04 08:00
2024-01-04
2,024
1
4
8
Thursday
140.6
95.5
1,361
14.7
43
179
3
null
1.09
2.05
2.1
99
82
65
26
99
41
194
194
108
7
33
23
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-04 09:00
2024-01-04
2,024
1
4
9
Thursday
132.7
89.6
1,268
17
47.1
185
3
null
0.96
1.45
1.5
105
80
63
29
105
42
194
194
108
8
41
26
extremely poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-04 10:00
2024-01-04
2,024
1
4
10
Thursday
133.6
90.3
1,299
28.3
48.9
167
3
null
0.86
0.75
0.75
87
80
64
42
87
42
194
194
108
14
51
27
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-04 11:00
2024-01-04
2,024
1
4
11
Thursday
131.3
88.7
1,413
44.7
49.8
135
2
null
0.77
0.2
0.2
79
79
63
51
68
42
194
194
108
22
81
27
poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-04 12:00
2024-01-04
2,024
1
4
12
Thursday
164.4
111.3
1,348
55
46.4
85
3
null
0.86
0
0
89
89
72
57
33
42
194
194
108
27
103
25
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-04 13:00
2024-01-04
2,024
1
4
13
Thursday
187.7
127.6
1,480
58.9
48.6
73
3
null
0.78
0
0
95
95
78
59
27
42
195
195
108
29
108
26
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-04 14:00
2024-01-04
2,024
1
4
14
Thursday
194.2
132.2
1,664
64
51.7
55
2
null
0.72
0
0
97
97
80
62
18
43
195
195
108
32
103
28
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-04 15:00
2024-01-04
2,024
1
4
15
Thursday
199.8
136.4
1,812
66.7
53.6
42
2
null
0.7
0
0
99
99
81
63
14
43
195
195
108
33
87
29
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-04 16:00
2024-01-04
2,024
1
4
16
Thursday
203
139.7
1,896
65.3
54.3
36
2
null
0.7
0
0
100
100
82
63
12
43
195
195
108
32
62
30
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-04 17:00
2024-01-04
2,024
1
4
17
Thursday
210.9
145.8
1,944
61.3
53.8
34
2
null
0.74
0
0
102
102
84
61
11
43
195
195
108
30
45
29
extremely poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-04 18:00
2024-01-04
2,024
1
4
18
Thursday
213.7
148.1
1,953
56
51
33
2
null
0.79
0
0
103
103
85
58
11
43
195
195
108
28
36
28
extremely poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-04 19:00
2024-01-04
2,024
1
4
19
Thursday
205.8
142.5
1,905
48.7
44
34
2
null
0.85
0
0
101
101
83
54
11
41
195
195
108
24
29
24
extremely poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-04 20:00
2024-01-04
2,024
1
4
20
Thursday
197.9
137.4
1,819
40.1
34.5
37
2
null
0.93
0
0
99
99
81
49
12
35
195
195
109
20
23
19
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-04 21:00
2024-01-04
2,024
1
4
21
Thursday
190
131.8
1,744
32.6
26.9
39
2
null
0.97
0
0
97
97
79
44
13
27
195
195
109
16
20
15
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-04 22:00
2024-01-04
2,024
1
4
22
Thursday
182.1
126.7
1,687
26.6
22.5
41
2
null
0.98
0
0
95
95
77
41
14
23
196
196
109
13
18
12
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-04 23:00
2024-01-04
2,024
1
4
23
Thursday
175.1
121.5
1,642
21.8
19.8
42
1
null
0.99
0
0
93
93
75
36
14
20
196
196
109
11
17
11
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-05 00:00
2024-01-05
2,024
1
5
0
Friday
174.6
121.5
1,604
16.7
16.5
47
2
null
1.31
0
0
93
93
75
29
16
17
196
196
110
8
17
9
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-05 01:00
2024-01-05
2,024
1
5
1
Friday
172.8
120.1
1,683
21.4
19.2
41
2
null
1.35
0
0
92
92
74
35
14
19
197
197
110
11
18
10
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-05 02:00
2024-01-05
2,024
1
5
2
Friday
173.7
120.6
1,791
27.8
23.1
33
2
null
1.37
0
0.05
92
92
74
42
11
23
197
197
110
14
18
13
very poor
true
false
Delhi
India
IN
28.6139
77.209
214
2024-01-05 03:00
2024-01-05
2,024
1
5
3
Friday
176.5
122.9
1,864
31.9
26.4
38
2
null
1.38
0.15
0.3
93
93
75
44
13
26
197
197
110
16
18
14
very poor
true
false
End of preview.

Global Air Quality 2024 β€” 263,520 Hourly Records Across 30 Cities

Subtitle: A full year of hourly pollutants, aerosol optical depth, UV and both European and US air-quality indices for the world's most polluted and cleanest major cities.


πŸ“– Description

Air pollution is one of the largest environmental health risks worldwide, yet hourly, multi-city, multi-pollutant data is surprisingly hard to assemble. This dataset is a whole calendar year (1 January – 31 December 2024) of hourly observations for 30 major cities, giving you 263,520 rows with 39 columns.

Cities were chosen to span the pollution spectrum: Delhi, Lahore, Dhaka, Beijing, Mumbai, Cairo, Jakarta, Tehran, Kolkata, Shanghai, Karachi, Lagos, Mexico City, SΓ£o Paulo, Bangkok, Istanbul, Seoul and Tokyo on one side; London, Paris, Berlin, Madrid, New York, Los Angeles, Chicago, Toronto, Sydney, Nairobi, Johannesburg and Buenos Aires on the other.

What's measured, per city-hour:

  • Particulates β€” PM10, PM2.5, Saharan dust
  • Gases β€” carbon monoxide, nitrogen dioxide, sulphur dioxide, ozone, ammonia
  • Optical/atmospheric β€” aerosol optical depth at 550 nm, surface UV index and clear-sky UV index
  • Indices β€” European AQI plus five sub-indices (PM2.5, PM10, NOβ‚‚, O₃, SOβ‚‚) and the US AQI plus five sub-indices
  • Derived flags β€” aqi_band (good β†’ extremely poor), is_who_pm25_exceeded (above the WHO 2021 24-hour guideline of 15 Β΅g/mΒ³), is_weekend
  • Time keys β€” UTC timestamp, date, year, month, day, hour, weekday

All values come from the CAMS European/global atmospheric composition model served through Open-Meteo's air-quality API, so they are model-grid values rather than single roadside sensors β€” consistent across cities and time, which is what you want for comparison and forecasting.

🧾 Columns (39)

city, country, iso2, latitude, longitude, elevation_m, timestamp_utc, date, year, month, day, hour, weekday, pm10, pm2_5, carbon_monoxide, nitrogen_dioxide, sulphur_dioxide, ozone, dust, ammonia, aerosol_optical_depth, uv_index, uv_index_clear_sky, european_aqi, european_aqi_pm2_5, european_aqi_pm10, european_aqi_nitrogen_dioxide, european_aqi_ozone, european_aqi_sulphur_dioxide, us_aqi, us_aqi_pm2_5, us_aqi_pm10, us_aqi_nitrogen_dioxide, us_aqi_ozone, us_aqi_sulphur_dioxide, aqi_band, is_who_pm25_exceeded, is_weekend

πŸ’‘ Ideas for using this data

  1. Diurnal and weekly cycles β€” rush-hour peaks in NOβ‚‚ versus afternoon ozone production, and the weekend effect.
  2. City benchmarking β€” rank cities by annual mean PM2.5 and by hours above WHO guidelines.
  3. Forecasting β€” build an hourly AQI forecaster with lag features (SARIMA, gradient boosting, or a small LSTM).
  4. Pollution source fingerprinting β€” NOβ‚‚/PM2.5 ratio separates traffic from dust-driven pollution; dust spikes show up as PM10 ≫ PM2.5.
  5. Seasonality and meteorology β€” winter inversions in Delhi/Beijing versus summer ozone in Madrid.
  6. UV and aerosol β€” how does aerosol optical depth suppress surface UV?
  7. Classification β€” predict aqi_band or is_who_pm25_exceeded from pollutant concentrations, then compare with the official index thresholds.

⚠️ Caveats

  • Values are modelled grid-cell concentrations, not sensor readings; absolute levels can differ from ground stations.
  • Some pollutants (notably ammonia and dust) are only meaningful in certain regions and may be near-zero elsewhere.
  • Timestamps are UTC; local-time analysis needs a timezone offset per city.
  • Cities are a curated sample, not a random or population-weighted sample of the world.

πŸ”— Provenance & licence

  • Source: Open-Meteo Air Quality API (CAMS global/European atmospheric composition forecasts) β€” free for non-commercial use with attribution.
  • Snapshot pulled November 2026 for calendar year 2024. 263,520 rows Γ— 39 columns.
Downloads last month
34