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 ({'CustomerID', 'Unnamed: 0', 'ProdTaken'})

This happened while the csv dataset builder was generating data using

hf://datasets/ananttripathiak/tourism-dataset/tourism.csv (at revision cd047a3b95e35283671f20dbb075a16b1aac3ebf)

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 1339, 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 972, 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/ananttripathiak/tourism-dataset/tourism.csv (at revision cd047a3b95e35283671f20dbb075a16b1aac3ebf)
              
              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
34
0
1
9
2
1
2
4
0
3
1
4
0
1
0
0
1
17,979
32
1
1
6
2
1
3
3
1
4
0
2
0
3
0
0
2
21,220
30
1
3
11
2
0
2
3
3
3
0
3
0
4
1
1
3
24,419
39
1
3
9
3
1
3
4
3
4
3
2
0
4
1
2
3
26,029
37
0
1
31
2
0
3
4
1
4
1
2
0
3
1
2
2
24,352
34
1
1
9
2
1
3
4
0
3
2
2
0
3
0
2
1
21,178
27
0
1
7
2
0
4
6
0
3
1
5
0
4
1
3
1
23,042
30
1
3
6
2
1
3
4
1
5
1
2
0
4
1
1
2
24,714
53
0
1
32
3
0
3
5
4
3
1
5
0
5
0
2
0
32,504
55
0
1
7
2
0
3
4
3
3
1
2
0
5
1
2
3
29,180
46
0
1
6
3
1
2
4
3
5
0
3
1
2
1
1
3
25,673
39
0
1
19
2
1
2
5
1
5
1
4
0
5
1
1
2
24,966
54
0
2
32
2
0
1
2
4
3
2
3
1
3
1
0
0
32,328
42
1
1
19
3
1
3
1
1
5
1
6
0
4
1
0
2
20,538
33
1
1
12
2
0
3
2
0
3
1
5
0
5
1
2
1
21,990
35
1
1
6
3
1
1
4
0
3
2
2
0
4
1
0
1
17,859
39
1
1
16
3
1
3
3
3
3
3
1
0
3
1
0
3
28,464
29
1
1
17
2
0
3
4
1
3
3
5
0
4
1
2
2
22,338
23
0
1
11
1
1
3
5
0
3
3
7
0
5
1
1
1
22,572
37
0
1
15
3
1
2
3
0
3
0
2
1
2
0
0
1
17,326
33
1
1
10
3
0
4
4
1
5
1
3
0
1
1
1
2
25,403
33
1
1
7
2
1
4
4
0
5
3
3
0
1
0
2
1
21,634
50
0
1
25
2
1
4
4
1
3
1
3
1
1
0
1
2
25,482
42
1
1
6
2
0
2
4
1
3
1
1
1
3
0
0
2
21,062
43
0
1
33
3
0
3
4
3
5
1
5
1
3
0
1
3
31,869
36
0
1
15
2
1
3
1
0
4
1
2
0
5
1
0
1
17,810
27
1
3
8
3
0
2
1
1
3
3
1
0
1
0
1
2
21,500
29
1
3
16
2
1
4
4
1
3
3
3
0
3
1
2
2
23,931
34
1
1
12
2
0
4
5
0
3
0
3
0
2
0
3
1
21,589
41
1
3
21
2
0
3
4
1
5
1
3
0
3
0
2
2
23,317
32
1
3
20
3
1
4
5
1
5
1
7
1
1
1
1
2
20,980
50
0
2
9
3
1
3
3
2
4
1
2
0
1
1
2
4
33,200
24
0
3
30
3
1
2
3
0
3
1
1
0
4
1
1
1
17,400
43
1
1
7
2
0
3
5
1
3
1
2
1
3
0
1
2
24,740
39
1
1
16
3
1
3
3
1
5
1
3
0
5
1
2
2
20,377
55
1
1
6
3
1
2
3
2
5
2
1
1
1
1
1
4
34,045
33
0
1
10
2
0
3
4
0
3
3
3
0
4
1
1
1
24,887
34
1
3
23
2
0
4
4
3
5
3
4
1
5
0
1
3
27,242
25
1
1
25
2
1
3
4
0
3
1
2
0
4
0
1
1
21,452
30
1
1
24
2
0
3
3
0
3
2
2
0
1
1
2
1
17,632
32
0
3
12
3
0
3
4
0
4
1
3
0
3
0
1
1
21,467
34
0
1
12
2
0
4
4
3
4
0
8
0
3
1
3
3
30,556
50
1
1
30
2
1
3
3
4
3
1
4
1
4
1
2
0
28,973
33
1
1
6
2
1
3
4
0
5
2
4
1
4
0
0
1
17,799
36
0
3
18
3
1
3
4
1
3
1
3
0
5
0
1
2
23,646
50
0
1
25
2
1
4
4
1
3
1
3
1
2
0
2
2
25,482
49
0
3
14
3
0
4
4
0
3
1
4
1
4
1
2
1
21,333
37
0
3
14
3
0
3
2
1
5
0
4
0
1
1
1
2
23,317
30
1
1
24
2
0
3
3
0
3
2
2
0
2
1
0
1
17,632
23
1
1
7
2
1
4
4
0
3
3
2
0
3
0
3
1
22,053
34
1
1
33
3
0
3
3
0
4
2
3
0
3
0
0
1
17,311
52
1
3
28
3
1
4
4
1
3
3
2
1
5
0
3
2
24,119
27
0
3
36
3
1
4
6
1
5
3
2
0
3
0
1
2
23,647
40
0
3
30
2
0
3
1
4
4
3
5
1
3
1
2
0
28,194
44
1
1
8
2
0
3
1
0
3
0
2
0
4
1
0
1
17,011
27
0
1
9
2
1
3
4
0
5
1
8
1
5
0
1
1
20,720
42
0
1
12
2
1
4
5
0
5
1
8
0
3
1
1
1
20,785
28
1
3
9
3
1
3
4
0
5
1
2
0
5
0
2
1
21,719
59
1
1
12
1
0
3
5
3
4
1
4
1
5
1
2
3
29,230
40
1
3
28
2
1
3
5
1
3
0
5
1
1
0
2
2
24,798
29
0
2
7
2
1
3
4
0
3
1
3
0
4
0
2
1
21,384
35
1
1
15
2
0
3
4
1
5
1
5
0
5
1
1
2
23,799
34
1
2
15
1
0
2
3
0
3
0
2
0
1
1
0
1
17,742
36
1
1
10
2
1
2
4
1
3
2
2
0
5
1
1
2
20,810
41
0
1
16
2
1
3
4
4
5
1
5
0
2
1
0
0
32,181
46
0
1
6
3
1
2
4
3
5
1
3
1
1
1
1
3
25,673
27
1
3
36
3
1
3
4
1
3
1
7
0
5
1
1
2
22,984
32
0
3
27
2
1
4
2
0
3
1
2
0
5
1
1
1
21,469
38
1
1
26
2
1
4
4
0
4
1
6
0
4
0
2
1
21,700
34
0
3
29
3
1
4
4
1
4
1
2
0
1
0
1
2
24,824
51
1
2
11
2
1
2
3
4
4
1
2
1
3
1
1
0
29,026
40
1
1
8
3
0
2
4
0
3
2
1
1
3
1
1
1
17,342
49
1
1
13
2
1
2
4
3
3
3
1
0
1
1
0
3
25,965
48
1
1
16
2
0
4
4
0
3
2
6
0
3
1
1
1
20,783
29
1
3
26
3
1
2
3
1
3
1
3
0
1
1
0
2
21,931
25
0
3
31
3
1
3
4
0
3
1
2
0
4
1
2
1
21,078
35
1
3
23
2
1
3
3
1
5
1
4
1
3
0
2
2
23,966
30
1
3
17
3
0
3
5
1
4
1
3
1
5
1
1
2
26,946
35
1
1
29
2
1
2
4
1
3
1
4
1
4
1
0
2
20,916
36
1
1
8
2
0
3
3
0
3
1
5
0
5
1
0
1
17,543
50
1
3
5
3
1
2
3
2
3
1
5
1
5
0
1
4
34,331
44
1
3
32
3
1
4
5
3
3
1
7
0
4
1
2
3
29,476
38
1
3
8
3
1
2
3
3
4
3
1
0
4
1
0
3
22,351
37
1
1
14
2
1
4
4
0
4
2
4
0
1
0
3
1
20,691
32
1
2
9
2
1
4
5
1
5
0
5
0
3
0
2
2
25,088
42
0
3
17
2
1
3
4
1
3
3
2
0
2
0
2
2
24,908
50
1
1
34
3
1
3
2
0
3
0
2
1
2
1
2
1
18,221
25
0
1
14
2
0
3
4
0
3
1
3
1
4
0
1
1
21,564
19
1
1
15
2
1
2
3
0
5
2
2
0
3
0
0
1
17,552
41
1
3
17
3
1
4
5
3
4
1
4
0
4
0
1
3
28,383
47
0
1
25
3
0
3
4
3
3
0
7
0
3
1
1
3
29,205
32
0
3
27
3
0
3
4
1
3
0
3
0
2
1
1
2
25,610
44
1
3
34
3
0
2
1
4
3
0
4
1
2
1
1
0
28,320
51
1
3
15
3
1
3
4
0
4
0
2
0
2
1
1
1
22,553
37
1
1
7
2
0
2
4
1
3
1
2
0
1
0
0
2
21,474
36
1
1
7
3
1
4
5
0
5
2
3
0
1
0
3
1
21,128
30
1
1
15
2
1
4
6
0
5
0
3
1
3
1
2
1
20,797
43
1
3
21
3
0
4
5
1
3
3
2
0
3
1
1
2
24,922
28
1
3
9
2
1
4
4
1
3
3
3
1
4
0
2
2
23,156
33
1
1
9
1
1
3
5
1
5
2
6
0
4
0
2
2
20,854
End of preview.
README.md exists but content is empty.
Downloads last month
5