Dataset Preview
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 ({'CustomerID', 'Unnamed: 0', 'ProdTaken'})
This happened while the csv dataset builder was generating data using
hf://datasets/deepakpathania/tourism-dataset/data/tourism.csv (at revision 642575182717cc5492a65c8b8dcdd6bbd3dddf50)
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.12/site-packages/datasets/builder.py", line 1831, in _prepare_split_single
writer.write_table(table)
File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 714, in write_table
pa_table = table_cast(pa_table, self._schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2272, in table_cast
return cast_table_to_schema(table, schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2218, in cast_table_to_schema
raise CastError(
datasets.table.CastError: Couldn't cast
Unnamed: 0: int64
CustomerID: int64
ProdTaken: int64
Age: double
TypeofContact: string
CityTier: int64
DurationOfPitch: double
Occupation: string
Gender: string
NumberOfPersonVisiting: int64
NumberOfFollowups: double
ProductPitched: string
PreferredPropertyStar: double
MaritalStatus: string
NumberOfTrips: double
Passport: int64
PitchSatisfactionScore: int64
OwnCar: int64
NumberOfChildrenVisiting: double
Designation: string
MonthlyIncome: double
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 2881
to
{'Age': Value('float64'), 'TypeofContact': Value('int64'), 'CityTier': Value('int64'), 'DurationOfPitch': Value('float64'), 'Occupation': Value('int64'), 'Gender': Value('int64'), 'NumberOfPersonVisiting': Value('int64'), 'NumberOfFollowups': Value('float64'), 'ProductPitched': Value('int64'), 'PreferredPropertyStar': Value('float64'), 'MaritalStatus': Value('int64'), 'NumberOfTrips': Value('float64'), 'Passport': Value('int64'), 'PitchSatisfactionScore': Value('int64'), 'OwnCar': Value('int64'), 'NumberOfChildrenVisiting': Value('float64'), 'Designation': Value('int64'), 'MonthlyIncome': 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 1455, 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 1054, in convert_to_parquet
builder.download_and_prepare(
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 894, in download_and_prepare
self._download_and_prepare(
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 970, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1702, in _prepare_split
for job_id, done, content in self._prepare_split_single(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/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 3 new columns ({'CustomerID', 'Unnamed: 0', 'ProdTaken'})
This happened while the csv dataset builder was generating data using
hf://datasets/deepakpathania/tourism-dataset/data/tourism.csv (at revision 642575182717cc5492a65c8b8dcdd6bbd3dddf50)
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.
Age float64 | TypeofContact int64 | CityTier int64 | DurationOfPitch float64 | Occupation int64 | Gender int64 | NumberOfPersonVisiting int64 | NumberOfFollowups float64 | ProductPitched int64 | PreferredPropertyStar float64 | MaritalStatus int64 | NumberOfTrips float64 | Passport int64 | PitchSatisfactionScore int64 | OwnCar int64 | NumberOfChildrenVisiting float64 | Designation int64 | MonthlyIncome float64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
44 | 1 | 1 | 8 | 2 | 0 | 3 | 1 | 3 | 3 | 1 | 2 | 1 | 4 | 1 | 0 | 3 | 22,879 |
35 | 1 | 3 | 20 | 3 | 1 | 3 | 4 | 3 | 3 | 1 | 3 | 0 | 1 | 1 | 2 | 3 | 27,306 |
47 | 1 | 3 | 7 | 3 | 0 | 4 | 4 | 3 | 5 | 1 | 3 | 0 | 2 | 1 | 2 | 3 | 29,131 |
32 | 1 | 1 | 6 | 2 | 1 | 3 | 3 | 1 | 4 | 1 | 2 | 0 | 3 | 1 | 0 | 2 | 21,220 |
59 | 1 | 1 | 9 | 1 | 1 | 3 | 4 | 0 | 3 | 2 | 6 | 0 | 2 | 1 | 2 | 1 | 21,157 |
44 | 1 | 3 | 11 | 3 | 1 | 2 | 3 | 2 | 4 | 0 | 1 | 0 | 5 | 1 | 1 | 4 | 33,213 |
32 | 1 | 1 | 35 | 2 | 0 | 2 | 4 | 0 | 4 | 2 | 2 | 0 | 3 | 1 | 0 | 1 | 17,837 |
27 | 1 | 3 | 7 | 2 | 1 | 3 | 4 | 1 | 3 | 1 | 3 | 0 | 5 | 0 | 2 | 2 | 23,974 |
38 | 0 | 3 | 8 | 2 | 1 | 2 | 4 | 1 | 3 | 0 | 4 | 0 | 5 | 1 | 1 | 2 | 20,249 |
32 | 1 | 1 | 12 | 1 | 1 | 3 | 4 | 0 | 3 | 1 | 2 | 1 | 4 | 1 | 1 | 1 | 23,499 |
40 | 1 | 1 | 30 | 1 | 1 | 3 | 3 | 1 | 3 | 1 | 2 | 0 | 3 | 1 | 1 | 2 | 18,319 |
38 | 1 | 1 | 20 | 3 | 1 | 3 | 4 | 1 | 3 | 1 | 3 | 0 | 1 | 0 | 1 | 2 | 22,963 |
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