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 2 new columns ({'Population', 'Country name'}) and 2 missing columns ({'Country', 'Life_expectancy'}).

This happened while the csv dataset builder was generating data using

hf://datasets/cos30049-safetywindy/air_quality_health/Population.csv (at revision d41288d114f8ce8695e6738f674b1040f30f09e7)

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 "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1871, in _prepare_split_single
                  writer.write_table(table)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 643, in write_table
                  pa_table = table_cast(pa_table, self._schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2293, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2241, in cast_table_to_schema
                  raise CastError(
              datasets.table.CastError: Couldn't cast
              Country_code: string
              Country name: string
              Year: int64
              Population: int64
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 733
              to
              {'Country': Value(dtype='string', id=None), 'Country_code': Value(dtype='string', id=None), 'Year': Value(dtype='int64', id=None), 'Life_expectancy': Value(dtype='float64', id=None)}
              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 1436, in compute_config_parquet_and_info_response
                  parquet_operations = convert_to_parquet(builder)
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1053, in convert_to_parquet
                  builder.download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 925, in download_and_prepare
                  self._download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1001, in _download_and_prepare
                  self._prepare_split(split_generator, **prepare_split_kwargs)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1742, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1873, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
              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 2 new columns ({'Population', 'Country name'}) and 2 missing columns ({'Country', 'Life_expectancy'}).
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/cos30049-safetywindy/air_quality_health/Population.csv (at revision d41288d114f8ce8695e6738f674b1040f30f09e7)
              
              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.

Country
string
Country_code
string
Year
int64
Life_expectancy
float64
Afghanistan
AFG
1,950
27.73
Afghanistan
AFG
1,951
27.96
Afghanistan
AFG
1,952
28.45
Afghanistan
AFG
1,953
28.93
Afghanistan
AFG
1,954
29.23
Afghanistan
AFG
1,955
29.92
Afghanistan
AFG
1,956
30.41
Afghanistan
AFG
1,957
30.95
Afghanistan
AFG
1,958
31.51
Afghanistan
AFG
1,959
32.04
Afghanistan
AFG
1,960
32.53
Afghanistan
AFG
1,961
33.07
Afghanistan
AFG
1,962
33.55
Afghanistan
AFG
1,963
34.02
Afghanistan
AFG
1,964
34.49
Afghanistan
AFG
1,965
34.95
Afghanistan
AFG
1,966
35.45
Afghanistan
AFG
1,967
35.92
Afghanistan
AFG
1,968
36.42
Afghanistan
AFG
1,969
36.91
Afghanistan
AFG
1,970
37.42
Afghanistan
AFG
1,971
37.92
Afghanistan
AFG
1,972
38.44
Afghanistan
AFG
1,973
39
Afghanistan
AFG
1,974
39.55
Afghanistan
AFG
1,975
40.1
Afghanistan
AFG
1,976
40.65
Afghanistan
AFG
1,977
41.23
Afghanistan
AFG
1,978
40.27
Afghanistan
AFG
1,979
39.09
Afghanistan
AFG
1,980
39.62
Afghanistan
AFG
1,981
40.16
Afghanistan
AFG
1,982
37.77
Afghanistan
AFG
1,983
38.19
Afghanistan
AFG
1,984
33.33
Afghanistan
AFG
1,985
33.55
Afghanistan
AFG
1,986
39.4
Afghanistan
AFG
1,987
39.84
Afghanistan
AFG
1,988
43.96
Afghanistan
AFG
1,989
45.16
Afghanistan
AFG
1,990
45.97
Afghanistan
AFG
1,991
46.66
Afghanistan
AFG
1,992
47.6
Afghanistan
AFG
1,993
51.47
Afghanistan
AFG
1,994
51.49
Afghanistan
AFG
1,995
52.54
Afghanistan
AFG
1,996
53.24
Afghanistan
AFG
1,997
53.63
Afghanistan
AFG
1,998
52.94
Afghanistan
AFG
1,999
54.85
Afghanistan
AFG
2,000
55.3
Afghanistan
AFG
2,001
55.8
Afghanistan
AFG
2,002
56.45
Afghanistan
AFG
2,003
57.34
Afghanistan
AFG
2,004
57.94
Afghanistan
AFG
2,005
58.36
Afghanistan
AFG
2,006
58.68
Afghanistan
AFG
2,007
59.11
Afghanistan
AFG
2,008
59.85
Afghanistan
AFG
2,009
60.36
Afghanistan
AFG
2,010
60.85
Afghanistan
AFG
2,011
61.42
Afghanistan
AFG
2,012
61.92
Afghanistan
AFG
2,013
62.42
Afghanistan
AFG
2,014
62.55
Afghanistan
AFG
2,015
62.66
Afghanistan
AFG
2,016
63.14
Afghanistan
AFG
2,017
63.02
Afghanistan
AFG
2,018
63.08
Afghanistan
AFG
2,019
63.56
Afghanistan
AFG
2,020
62.58
Afghanistan
AFG
2,021
61.98
Africa (UN)
null
1,950
37.62
Africa (UN)
null
1,951
37.93
Africa (UN)
null
1,952
38.44
Africa (UN)
null
1,953
38.92
Africa (UN)
null
1,954
39.3
Africa (UN)
null
1,955
39.8
Africa (UN)
null
1,956
40.17
Africa (UN)
null
1,957
40.01
Africa (UN)
null
1,958
40.3
Africa (UN)
null
1,959
41.28
Africa (UN)
null
1,960
41.48
Africa (UN)
null
1,961
41.87
Africa (UN)
null
1,962
42.32
Africa (UN)
null
1,963
42.78
Africa (UN)
null
1,964
43.25
Africa (UN)
null
1,965
43.44
Africa (UN)
null
1,966
43.43
Africa (UN)
null
1,967
43.65
Africa (UN)
null
1,968
44.1
Africa (UN)
null
1,969
44.32
Africa (UN)
null
1,970
44.78
Africa (UN)
null
1,971
45.32
Africa (UN)
null
1,972
45.41
Africa (UN)
null
1,973
46.15
Africa (UN)
null
1,974
46.46
Africa (UN)
null
1,975
46.9
Africa (UN)
null
1,976
47.64
Africa (UN)
null
1,977
48.16
End of preview.
README.md exists but content is empty.
Downloads last month
2