The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
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 ({'ARRIVALS', 'EXPENDITURE'}) and 1 missing columns ({'GDP'}).
This happened while the csv dataset builder was generating data using
hf://datasets/absheerakk/global-tourism-analysis/tourism.csv (at revision 7b731fbac12f38b6531b3f791e1b329a46ea1baa), ['hf://datasets/absheerakk/global-tourism-analysis@7b731fbac12f38b6531b3f791e1b329a46ea1baa/gdp.csv', 'hf://datasets/absheerakk/global-tourism-analysis@7b731fbac12f38b6531b3f791e1b329a46ea1baa/tourism.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 1837, in _prepare_split_single
writer.write_table(table)
~~~~~~~~~~~~~~~~~~^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 765, 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 773, in _write_table
pa_table = table_cast(pa_table, self._schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2369, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2297, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
COUNTRY: string
YEAR: int64
ARRIVALS: string
EXPENDITURE: string
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 737
to
{'COUNTRY': Value('string'), 'YEAR': Value('int64'), 'GDP': Value('float64')}
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 1369, 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 948, 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 1683, 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 1839, 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 2 new columns ({'ARRIVALS', 'EXPENDITURE'}) and 1 missing columns ({'GDP'}).
This happened while the csv dataset builder was generating data using
hf://datasets/absheerakk/global-tourism-analysis/tourism.csv (at revision 7b731fbac12f38b6531b3f791e1b329a46ea1baa), ['hf://datasets/absheerakk/global-tourism-analysis@7b731fbac12f38b6531b3f791e1b329a46ea1baa/gdp.csv', 'hf://datasets/absheerakk/global-tourism-analysis@7b731fbac12f38b6531b3f791e1b329a46ea1baa/tourism.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.
COUNTRY string | YEAR int64 | GDP float64 |
|---|---|---|
ALBANIA | 2,008 | 2.75707 |
ALBANIA | 2,009 | 2.66869 |
ALBANIA | 2,010 | 2.81234 |
ALBANIA | 2,011 | 2.53477 |
ALBANIA | 2,012 | 2.35697 |
ALBANIA | 2,013 | 2.32137 |
ALBANIA | 2,014 | 2.32641 |
ALBANIA | 2,015 | 2.44379 |
ALBANIA | 2,016 | 2.63697 |
ALBANIA | 2,017 | 2.83579 |
ALBANIA | 2,018 | 3.08301 |
ALBANIA | 2,019 | 3.54724 |
ALBANIA | 2,020 | 2.5657 |
ALBANIA | 2,021 | 3.02029 |
ALBANIA | 2,022 | 3.77704 |
ALBANIA | 2,023 | 5.56238 |
ALGERIA | 2,008 | 0.77914 |
ALGERIA | 2,009 | 1.01034 |
ALGERIA | 2,010 | 0.95513 |
ALGERIA | 2,011 | 0.82206 |
ALGERIA | 2,012 | 0.87226 |
ALGERIA | 2,013 | 1.00661 |
ALGERIA | 2,014 | 1.03 |
ALGERIA | 2,015 | 1.15092 |
ALGERIA | 2,016 | 1.28468 |
ALGERIA | 2,017 | 1.37483 |
ALGERIA | 2,018 | 1.39329 |
ALGERIA | 2,019 | 1.38079 |
ALGERIA | 2,020 | 0.60856 |
ALGERIA | 2,021 | 0.81195 |
ALGERIA | 2,022 | 1.08616 |
ALGERIA | 2,023 | 1.39349 |
ANTIGUA AND BARBUDA | 2,011 | 10.53691 |
ANTIGUA AND BARBUDA | 2,012 | 10.22042 |
ANTIGUA AND BARBUDA | 2,013 | 10.67817 |
ANTIGUA AND BARBUDA | 2,014 | 10.93971 |
ANTIGUA AND BARBUDA | 2,015 | 11.28182 |
ANTIGUA AND BARBUDA | 2,016 | 11.3816 |
ANTIGUA AND BARBUDA | 2,017 | 10.83745 |
ANTIGUA AND BARBUDA | 2,018 | 10.69594 |
ANTIGUA AND BARBUDA | 2,019 | 10.63667 |
ANTIGUA AND BARBUDA | 2,020 | 7.52403 |
ANTIGUA AND BARBUDA | 2,021 | 9.73113 |
ANTIGUA AND BARBUDA | 2,022 | 11.70779 |
AZERBAIJAN | 2,016 | 3.7 |
AZERBAIJAN | 2,022 | 2.22808 |
AZERBAIJAN | 2,023 | 3.73161 |
ARGENTINA | 2,016 | 1.91767 |
ARGENTINA | 2,017 | 1.98626 |
ARGENTINA | 2,018 | 1.83979 |
ARGENTINA | 2,019 | 1.77327 |
ARGENTINA | 2,020 | 0.88322 |
ARGENTINA | 2,021 | 0.84015 |
ARGENTINA | 2,022 | 1.68395 |
AUSTRALIA | 2,008 | 2.7 |
AUSTRALIA | 2,009 | 2.8 |
AUSTRALIA | 2,010 | 2.6 |
AUSTRALIA | 2,011 | 2.6 |
AUSTRALIA | 2,012 | 2.6 |
AUSTRALIA | 2,013 | 2.5 |
AUSTRALIA | 2,014 | 2.7 |
AUSTRALIA | 2,015 | 2.9 |
AUSTRALIA | 2,016 | 2.9 |
AUSTRALIA | 2,017 | 2.9 |
AUSTRALIA | 2,018 | 3.1 |
AUSTRALIA | 2,019 | 2.4 |
AUSTRALIA | 2,020 | 1.5 |
AUSTRALIA | 2,021 | 1.6 |
AUSTRALIA | 2,022 | 2.8 |
AUSTRALIA | 2,023 | 2.9 |
AUSTRIA | 2,018 | 5.19838 |
AUSTRIA | 2,019 | 5.33122 |
AUSTRIA | 2,020 | 3.36035 |
AUSTRIA | 2,021 | 2.6604 |
BAHAMAS | 2,012 | 15.16544 |
BAHRAIN | 2,015 | 5.17559 |
BAHRAIN | 2,016 | 6.89328 |
BAHRAIN | 2,017 | 6.93861 |
BAHRAIN | 2,018 | 5.78345 |
BAHRAIN | 2,019 | 6.21983 |
BAHRAIN | 2,020 | 1.46388 |
BAHRAIN | 2,021 | 3.03483 |
BAHRAIN | 2,022 | 5.64767 |
BAHRAIN | 2,023 | 7.13505 |
BANGLADESH | 2,019 | 3.02 |
BELGIUM | 2,016 | 2.18169 |
BELGIUM | 2,019 | 1.855 |
BELGIUM | 2,020 | 3.16 |
BELGIUM | 2,021 | 3.54 |
BELGIUM | 2,022 | 3.43 |
BERMUDA | 2,008 | 4.9 |
BERMUDA | 2,009 | 4.3 |
BERMUDA | 2,010 | 5.2 |
BERMUDA | 2,011 | 5.7 |
BERMUDA | 2,012 | 5.2 |
BERMUDA | 2,013 | 5 |
BERMUDA | 2,014 | 4.6 |
BERMUDA | 2,015 | 4.2 |
BERMUDA | 2,016 | 4.7 |
BERMUDA | 2,017 | 4.8 |
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Global Tourism and GDP Dataset (2008–2021)
Description
This repository contains tourism and economic indicator datasets for multiple countries covering the period 2008–2021.
The datasets are intended for educational purposes, data analysis, visualization, and machine learning applications.
Files
gdp.csv
Contains annual Gross Domestic Product (GDP) values.
Columns
- Country
- Year
- GDP
tourism.csv
Contains annual tourism statistics.
Columns
- Country
- Year
- Arrivals
- Expenditure
Time Period
2008–2021
Source
The tourism dataset is derived from UN Tourism Statistics (formerly UNWTO), which compiles official international tourism statistics reported by national authorities.
Possible Applications
- Tourism trend analysis
- Economic data analysis
- Machine learning
- Time series forecasting
- Data visualization
Notes
This repository is intended for educational and research purposes.
- Downloads last month
- 37