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 1 new columns ({'2024 [YR2024]'}) and 1 missing columns ({'2022 [YR2022]'}).

This happened while the csv dataset builder was generating data using

hf://datasets/RichardVR/6_critical_minerals_analysis/2024.csv (at revision c8837c581c380ac03756b473ad81793c0db2c639)

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 1831, in _prepare_split_single
                  writer.write_table(table)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 644, 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 2272, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2218, in cast_table_to_schema
                  raise CastError(
              datasets.table.CastError: Couldn't cast
              Country Name: string
              Country Code: string
              Series Name: string
              Series Code: string
              2024 [YR2024]: string
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 880
              to
              {'Country Name': Value('string'), 'Country Code': Value('string'), 'Series Name': Value('string'), 'Series Code': Value('string'), '2022 [YR2022]': Value('string')}
              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 1456, 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 1055, in convert_to_parquet
                  builder.download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 894, in download_and_prepare
                  self._download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 970, 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 1702, 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 1833, 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 1 new columns ({'2024 [YR2024]'}) and 1 missing columns ({'2022 [YR2022]'}).
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/RichardVR/6_critical_minerals_analysis/2024.csv (at revision c8837c581c380ac03756b473ad81793c0db2c639)
              
              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 Name
string
Country Code
string
Series Name
string
Series Code
string
2022 [YR2022]
string
Afghanistan
AFG
CPIA building human resources rating (1=low to 6=high)
IQ.CPA.HRES.XQ
2
Afghanistan
AFG
CPIA business regulatory environment rating (1=low to 6=high)
IQ.CPA.BREG.XQ
2
Afghanistan
AFG
CPIA debt policy rating (1=low to 6=high)
IQ.CPA.DEBT.XQ
1.5
Afghanistan
AFG
CPIA economic management cluster average (1=low to 6=high)
IQ.CPA.ECON.XQ
1.333333
Afghanistan
AFG
CPIA efficiency of revenue mobilization rating (1=low to 6=high)
IQ.CPA.REVN.XQ
2.5
Afghanistan
AFG
CPIA equity of public resource use rating (1=low to 6=high)
IQ.CPA.PRES.XQ
2
Afghanistan
AFG
CPIA financial sector rating (1=low to 6=high)
IQ.CPA.FINS.XQ
1.5
Afghanistan
AFG
CPIA fiscal policy rating (1=low to 6=high)
IQ.CPA.FISP.XQ
1
Afghanistan
AFG
CPIA gender equality rating (1=low to 6=high)
IQ.CPA.GNDR.XQ
1
Afghanistan
AFG
CPIA macroeconomic management rating (1=low to 6=high)
IQ.CPA.MACR.XQ
1.5
Afghanistan
AFG
CPIA policies for social inclusion/equity cluster average (1=low to 6=high)
IQ.CPA.SOCI.XQ
1.7
Afghanistan
AFG
CPIA policy and institutions for environmental sustainability rating (1=low to 6=high)
IQ.CPA.ENVR.XQ
2
Afghanistan
AFG
CPIA property rights and rule-based governance rating (1=low to 6=high)
IQ.CPA.PROP.XQ
1.5
Afghanistan
AFG
CPIA public sector management and institutions cluster average (1=low to 6=high)
IQ.CPA.PUBS.XQ
1.7
Afghanistan
AFG
CPIA quality of budgetary and financial management rating (1=low to 6=high)
IQ.CPA.FINQ.XQ
2
Afghanistan
AFG
CPIA quality of public administration rating (1=low to 6=high)
IQ.CPA.PADM.XQ
1.5
Afghanistan
AFG
CPIA social protection rating (1=low to 6=high)
IQ.CPA.PROT.XQ
1.5
Afghanistan
AFG
CPIA structural policies cluster average (1=low to 6=high)
IQ.CPA.STRC.XQ
2.166667
Afghanistan
AFG
CPIA trade rating (1=low to 6=high)
IQ.CPA.TRAD.XQ
3
Afghanistan
AFG
CPIA transparency, accountability, and corruption in the public sector rating (1=low to 6=high)
IQ.CPA.TRAN.XQ
1
Afghanistan
AFG
IDA resource allocation index (1=low to 6=high)
IQ.CPA.IRAI.XQ
1.725
Angola
AGO
CPIA building human resources rating (1=low to 6=high)
IQ.CPA.HRES.XQ
..
Angola
AGO
CPIA business regulatory environment rating (1=low to 6=high)
IQ.CPA.BREG.XQ
..
Angola
AGO
CPIA debt policy rating (1=low to 6=high)
IQ.CPA.DEBT.XQ
..
Angola
AGO
CPIA economic management cluster average (1=low to 6=high)
IQ.CPA.ECON.XQ
..
Angola
AGO
CPIA efficiency of revenue mobilization rating (1=low to 6=high)
IQ.CPA.REVN.XQ
..
Angola
AGO
CPIA equity of public resource use rating (1=low to 6=high)
IQ.CPA.PRES.XQ
..
Angola
AGO
CPIA financial sector rating (1=low to 6=high)
IQ.CPA.FINS.XQ
..
Angola
AGO
CPIA fiscal policy rating (1=low to 6=high)
IQ.CPA.FISP.XQ
..
Angola
AGO
CPIA gender equality rating (1=low to 6=high)
IQ.CPA.GNDR.XQ
..
Angola
AGO
CPIA macroeconomic management rating (1=low to 6=high)
IQ.CPA.MACR.XQ
..
Angola
AGO
CPIA policies for social inclusion/equity cluster average (1=low to 6=high)
IQ.CPA.SOCI.XQ
..
Angola
AGO
CPIA policy and institutions for environmental sustainability rating (1=low to 6=high)
IQ.CPA.ENVR.XQ
..
Angola
AGO
CPIA property rights and rule-based governance rating (1=low to 6=high)
IQ.CPA.PROP.XQ
..
Angola
AGO
CPIA public sector management and institutions cluster average (1=low to 6=high)
IQ.CPA.PUBS.XQ
..
Angola
AGO
CPIA quality of budgetary and financial management rating (1=low to 6=high)
IQ.CPA.FINQ.XQ
..
Angola
AGO
CPIA quality of public administration rating (1=low to 6=high)
IQ.CPA.PADM.XQ
..
Angola
AGO
CPIA social protection rating (1=low to 6=high)
IQ.CPA.PROT.XQ
..
Angola
AGO
CPIA structural policies cluster average (1=low to 6=high)
IQ.CPA.STRC.XQ
..
Angola
AGO
CPIA trade rating (1=low to 6=high)
IQ.CPA.TRAD.XQ
..
Angola
AGO
CPIA transparency, accountability, and corruption in the public sector rating (1=low to 6=high)
IQ.CPA.TRAN.XQ
..
Angola
AGO
IDA resource allocation index (1=low to 6=high)
IQ.CPA.IRAI.XQ
..
Armenia
ARM
CPIA building human resources rating (1=low to 6=high)
IQ.CPA.HRES.XQ
..
Armenia
ARM
CPIA business regulatory environment rating (1=low to 6=high)
IQ.CPA.BREG.XQ
..
Armenia
ARM
CPIA debt policy rating (1=low to 6=high)
IQ.CPA.DEBT.XQ
..
Armenia
ARM
CPIA economic management cluster average (1=low to 6=high)
IQ.CPA.ECON.XQ
..
Armenia
ARM
CPIA efficiency of revenue mobilization rating (1=low to 6=high)
IQ.CPA.REVN.XQ
..
Armenia
ARM
CPIA equity of public resource use rating (1=low to 6=high)
IQ.CPA.PRES.XQ
..
Armenia
ARM
CPIA financial sector rating (1=low to 6=high)
IQ.CPA.FINS.XQ
..
Armenia
ARM
CPIA fiscal policy rating (1=low to 6=high)
IQ.CPA.FISP.XQ
..
Armenia
ARM
CPIA gender equality rating (1=low to 6=high)
IQ.CPA.GNDR.XQ
..
Armenia
ARM
CPIA macroeconomic management rating (1=low to 6=high)
IQ.CPA.MACR.XQ
..
Armenia
ARM
CPIA policies for social inclusion/equity cluster average (1=low to 6=high)
IQ.CPA.SOCI.XQ
..
Armenia
ARM
CPIA policy and institutions for environmental sustainability rating (1=low to 6=high)
IQ.CPA.ENVR.XQ
..
Armenia
ARM
CPIA property rights and rule-based governance rating (1=low to 6=high)
IQ.CPA.PROP.XQ
..
Armenia
ARM
CPIA public sector management and institutions cluster average (1=low to 6=high)
IQ.CPA.PUBS.XQ
..
Armenia
ARM
CPIA quality of budgetary and financial management rating (1=low to 6=high)
IQ.CPA.FINQ.XQ
..
Armenia
ARM
CPIA quality of public administration rating (1=low to 6=high)
IQ.CPA.PADM.XQ
..
Armenia
ARM
CPIA social protection rating (1=low to 6=high)
IQ.CPA.PROT.XQ
..
Armenia
ARM
CPIA structural policies cluster average (1=low to 6=high)
IQ.CPA.STRC.XQ
..
Armenia
ARM
CPIA trade rating (1=low to 6=high)
IQ.CPA.TRAD.XQ
..
Armenia
ARM
CPIA transparency, accountability, and corruption in the public sector rating (1=low to 6=high)
IQ.CPA.TRAN.XQ
..
Armenia
ARM
IDA resource allocation index (1=low to 6=high)
IQ.CPA.IRAI.XQ
..
Bangladesh
BGD
CPIA building human resources rating (1=low to 6=high)
IQ.CPA.HRES.XQ
4
Bangladesh
BGD
CPIA business regulatory environment rating (1=low to 6=high)
IQ.CPA.BREG.XQ
3
Bangladesh
BGD
CPIA debt policy rating (1=low to 6=high)
IQ.CPA.DEBT.XQ
4
Bangladesh
BGD
CPIA economic management cluster average (1=low to 6=high)
IQ.CPA.ECON.XQ
3.5
Bangladesh
BGD
CPIA efficiency of revenue mobilization rating (1=low to 6=high)
IQ.CPA.REVN.XQ
2.5
Bangladesh
BGD
CPIA equity of public resource use rating (1=low to 6=high)
IQ.CPA.PRES.XQ
3.5
Bangladesh
BGD
CPIA financial sector rating (1=low to 6=high)
IQ.CPA.FINS.XQ
2.5
Bangladesh
BGD
CPIA fiscal policy rating (1=low to 6=high)
IQ.CPA.FISP.XQ
3.5
Bangladesh
BGD
CPIA gender equality rating (1=low to 6=high)
IQ.CPA.GNDR.XQ
3
Bangladesh
BGD
CPIA macroeconomic management rating (1=low to 6=high)
IQ.CPA.MACR.XQ
3
Bangladesh
BGD
CPIA policies for social inclusion/equity cluster average (1=low to 6=high)
IQ.CPA.SOCI.XQ
3.4
Bangladesh
BGD
CPIA policy and institutions for environmental sustainability rating (1=low to 6=high)
IQ.CPA.ENVR.XQ
3
Bangladesh
BGD
CPIA property rights and rule-based governance rating (1=low to 6=high)
IQ.CPA.PROP.XQ
2.5
Bangladesh
BGD
CPIA public sector management and institutions cluster average (1=low to 6=high)
IQ.CPA.PUBS.XQ
2.5
Bangladesh
BGD
CPIA quality of budgetary and financial management rating (1=low to 6=high)
IQ.CPA.FINQ.XQ
3
Bangladesh
BGD
CPIA quality of public administration rating (1=low to 6=high)
IQ.CPA.PADM.XQ
2
Bangladesh
BGD
CPIA social protection rating (1=low to 6=high)
IQ.CPA.PROT.XQ
3.5
Bangladesh
BGD
CPIA structural policies cluster average (1=low to 6=high)
IQ.CPA.STRC.XQ
2.833333
Bangladesh
BGD
CPIA trade rating (1=low to 6=high)
IQ.CPA.TRAD.XQ
3
Bangladesh
BGD
CPIA transparency, accountability, and corruption in the public sector rating (1=low to 6=high)
IQ.CPA.TRAN.XQ
2.5
Bangladesh
BGD
IDA resource allocation index (1=low to 6=high)
IQ.CPA.IRAI.XQ
3.058333
Benin
BEN
CPIA building human resources rating (1=low to 6=high)
IQ.CPA.HRES.XQ
4.5
Benin
BEN
CPIA business regulatory environment rating (1=low to 6=high)
IQ.CPA.BREG.XQ
4
Benin
BEN
CPIA debt policy rating (1=low to 6=high)
IQ.CPA.DEBT.XQ
4.5
Benin
BEN
CPIA economic management cluster average (1=low to 6=high)
IQ.CPA.ECON.XQ
4.166667
Benin
BEN
CPIA efficiency of revenue mobilization rating (1=low to 6=high)
IQ.CPA.REVN.XQ
4
Benin
BEN
CPIA equity of public resource use rating (1=low to 6=high)
IQ.CPA.PRES.XQ
3.5
Benin
BEN
CPIA financial sector rating (1=low to 6=high)
IQ.CPA.FINS.XQ
2.5
Benin
BEN
CPIA fiscal policy rating (1=low to 6=high)
IQ.CPA.FISP.XQ
4
Benin
BEN
CPIA gender equality rating (1=low to 6=high)
IQ.CPA.GNDR.XQ
4
Benin
BEN
CPIA macroeconomic management rating (1=low to 6=high)
IQ.CPA.MACR.XQ
4
Benin
BEN
CPIA policies for social inclusion/equity cluster average (1=low to 6=high)
IQ.CPA.SOCI.XQ
3.7
Benin
BEN
CPIA policy and institutions for environmental sustainability rating (1=low to 6=high)
IQ.CPA.ENVR.XQ
3.5
Benin
BEN
CPIA property rights and rule-based governance rating (1=low to 6=high)
IQ.CPA.PROP.XQ
3
Benin
BEN
CPIA public sector management and institutions cluster average (1=low to 6=high)
IQ.CPA.PUBS.XQ
3.6
Benin
BEN
CPIA quality of budgetary and financial management rating (1=low to 6=high)
IQ.CPA.FINQ.XQ
4
Benin
BEN
CPIA quality of public administration rating (1=low to 6=high)
IQ.CPA.PADM.XQ
3.5
End of preview.

No dataset card yet

Downloads last month
8