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 ({'ProdTaken'}) and 19 missing columns ({'Occupation', 'NumberOfFollowups', 'Gender', 'ProductPitched', 'Unnamed: 0', 'CityTier', 'MonthlyIncome', 'Age', 'NumberOfPersonVisiting', 'NumberOfTrips', 'OwnCar', 'MaritalStatus', 'PreferredPropertyStar', 'DurationOfPitch', 'PitchSatisfactionScore', 'Passport', 'Designation', 'TypeofContact', 'NumberOfChildrenVisiting'}).

This happened while the csv dataset builder was generating data using

hf://datasets/ShanRaja/Customer-Purchase-Prediction/y_train.csv (at revision ed188348e81eab5099573273a195c103d32fff1a)

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
              ProdTaken: int64
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 377
              to
              {'Unnamed: 0': Value('int64'), 'Age': Value('float64'), 'TypeofContact': Value('string'), 'CityTier': Value('int64'), 'DurationOfPitch': Value('float64'), 'Occupation': Value('string'), 'Gender': Value('int64'), 'NumberOfPersonVisiting': Value('int64'), 'NumberOfFollowups': Value('float64'), 'ProductPitched': Value('string'), 'PreferredPropertyStar': Value('float64'), 'MaritalStatus': Value('string'), 'NumberOfTrips': Value('float64'), 'Passport': Value('int64'), 'PitchSatisfactionScore': Value('int64'), 'OwnCar': Value('int64'), 'NumberOfChildrenVisiting': Value('float64'), 'Designation': Value('string'), '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 1 new columns ({'ProdTaken'}) and 19 missing columns ({'Occupation', 'NumberOfFollowups', 'Gender', 'ProductPitched', 'Unnamed: 0', 'CityTier', 'MonthlyIncome', 'Age', 'NumberOfPersonVisiting', 'NumberOfTrips', 'OwnCar', 'MaritalStatus', 'PreferredPropertyStar', 'DurationOfPitch', 'PitchSatisfactionScore', 'Passport', 'Designation', 'TypeofContact', 'NumberOfChildrenVisiting'}).
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/ShanRaja/Customer-Purchase-Prediction/y_train.csv (at revision ed188348e81eab5099573273a195c103d32fff1a)
              
              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.

Unnamed: 0
int64
Age
float64
TypeofContact
string
CityTier
int64
DurationOfPitch
float64
Occupation
string
Gender
int64
NumberOfPersonVisiting
int64
NumberOfFollowups
float64
ProductPitched
string
PreferredPropertyStar
float64
MaritalStatus
string
NumberOfTrips
float64
Passport
int64
PitchSatisfactionScore
int64
OwnCar
int64
NumberOfChildrenVisiting
float64
Designation
string
MonthlyIncome
float64
3,473
41
Company Invited
1
16
Salaried
2
3
4
Deluxe
3
Married
5
0
3
1
1
Manager
22,653
4,432
39
Self Enquiry
3
14
Small Business
1
3
5
Deluxe
3
Unmarried
2
0
1
1
1
Manager
22,706
2,076
34
Company Invited
1
22
Salaried
1
3
4
Basic
3
Single
2
0
5
1
2
Executive
17,553
4,728
41
Self Enquiry
1
21
Small Business
2
3
5
King
3
Single
3
0
3
1
2
VP
38,304
4,125
31
Company Invited
1
7
Salaried
2
3
5
Standard
3
Unmarried
3
0
5
1
2
Senior Manager
27,152
1,541
29
Self Enquiry
1
8
Salaried
2
3
3
Basic
4
Married
1
0
4
1
0
Executive
17,703
633
36
Self Enquiry
2
14
Salaried
2
3
4
Basic
5
Divorced
1
0
2
1
2
Executive
17,342
549
34
Self Enquiry
1
14
Small Business
1
3
3
Deluxe
3
Single
4
0
4
1
1
Manager
21,142
327
39
Self Enquiry
3
9
Small Business
1
2
3
Deluxe
3
Divorced
5
1
4
1
1
Manager
20,238
2,778
46
Self Enquiry
1
15
Salaried
2
4
4
Deluxe
3
Divorced
2
0
3
1
1
Manager
22,375
1,957
20
Self Enquiry
1
6
Salaried
1
2
4
Basic
4
Single
2
0
4
0
1
Executive
17,836
330
43
Company Invited
1
16
Salaried
1
2
4
Deluxe
3
Married
2
0
3
0
0
Manager
20,257
63
59
Self Enquiry
3
31
Salaried
1
2
3
Standard
5
Unmarried
1
0
3
1
0
Senior Manager
22,637
1,354
56
Self Enquiry
1
30
Salaried
2
3
3
Basic
3
Single
2
0
3
0
0
Executive
17,587
1,585
37
Self Enquiry
3
9
Salaried
2
2
3
Standard
3
Unmarried
3
0
3
0
1
Senior Manager
22,428
1,956
37
Self Enquiry
3
8
Small Business
2
3
3
Deluxe
3
Married
5
1
3
0
2
Manager
24,602
3,901
41
Self Enquiry
1
9
Small Business
1
4
4
Basic
3
Married
4
0
1
1
2
Executive
20,679
3,878
53
Company Invited
3
127
Salaried
2
3
4
Basic
3
Married
4
0
1
1
2
Executive
22,160
4,016
21
Company Invited
1
13
Salaried
1
4
5
Basic
3
Unmarried
3
1
1
0
1
Executive
21,604
721
50
Self Enquiry
1
30
Salaried
2
3
3
Super Deluxe
3
Divorced
4
1
4
0
0
AVP
28,973
4,426
28
Self Enquiry
1
10
Small Business
2
3
5
Basic
3
Single
2
0
1
1
2
Executive
20,723
4,300
38
Self Enquiry
1
21
Salaried
1
4
4
Basic
5
Married
3
0
4
1
2
Executive
21,712
2,680
34
Self Enquiry
1
9
Salaried
1
3
4
Basic
5
Divorced
2
0
3
1
1
Executive
21,385
1,105
33
Self Enquiry
3
14
Salaried
2
2
3
Deluxe
5
Married
3
0
5
1
0
Manager
21,392
3,668
27
Self Enquiry
1
24
Small Business
2
4
6
Basic
3
Married
3
0
3
0
3
Executive
20,983
3,429
32
Self Enquiry
1
29
Small Business
2
4
4
Deluxe
3
Divorced
3
1
5
1
1
Manager
24,857
1,624
32
Company Invited
3
14
Small Business
0
2
3
Standard
3
Unmarried
2
0
4
1
1
Senior Manager
23,998
4,139
60
Self Enquiry
1
10
Salaried
2
4
5
Basic
3
Married
5
0
3
0
1
Executive
20,855
3,827
37
Company Invited
1
16
Salaried
2
4
2
Basic
4
Married
3
0
5
1
1
Executive
21,488
4,468
28
Self Enquiry
1
14
Small Business
0
3
5
Deluxe
5
Unmarried
2
0
3
1
1
Manager
25,489
2,468
35
Self Enquiry
1
13
Small Business
2
3
4
Basic
5
Unmarried
4
0
2
1
2
Executive
21,638
806
52
Self Enquiry
1
13
Salaried
2
2
3
Standard
4
Unmarried
1
0
3
1
1
Senior Manager
25,445
769
26
Company Invited
1
6
Small Business
1
3
4
Basic
3
Married
2
0
2
1
0
Executive
17,007
4,241
40
Self Enquiry
3
10
Small Business
1
3
4
Deluxe
3
Married
6
1
4
1
2
Manager
23,916
3,612
25
Company Invited
1
9
Large Business
1
3
4
Basic
3
Unmarried
3
1
3
1
2
Executive
22,438
1,078
44
Self Enquiry
1
34
Salaried
2
2
3
Super Deluxe
5
Divorced
4
0
1
1
0
AVP
31,328
1,185
43
Self Enquiry
1
21
Salaried
2
3
4
Super Deluxe
3
Married
2
0
3
1
1
AVP
32,603
42
26
Self Enquiry
1
31
Salaried
2
2
5
Basic
3
Single
2
0
2
1
1
Executive
17,293
299
51
Self Enquiry
1
8
Small Business
2
2
5
Deluxe
4
Married
6
0
2
0
0
Manager
20,482
2,278
29
Self Enquiry
1
34
Salaried
1
3
3
Basic
3
Married
5
0
5
1
0
Executive
17,514
614
26
Company Invited
1
11
Small Business
1
2
4
Basic
3
Divorced
2
1
2
0
1
Executive
17,366
3,611
36
Self Enquiry
3
22
Small Business
2
3
6
Deluxe
3
Married
8
1
1
1
2
Manager
24,118
4,076
29
Self Enquiry
1
28
Small Business
2
3
4
Basic
3
Married
3
0
1
0
1
Executive
21,391
124
31
Self Enquiry
3
12
Salaried
2
3
5
Deluxe
3
Divorced
5
1
3
1
1
Manager
21,172
890
54
Company Invited
1
6
Salaried
1
2
3
Standard
3
Married
1
0
5
1
1
Senior Manager
25,502
1,392
35
Self Enquiry
3
13
Salaried
1
2
3
Deluxe
3
Married
2
1
4
1
1
Manager
20,204
2,877
47
Self Enquiry
3
17
Small Business
1
4
5
Standard
3
Divorced
4
1
2
1
2
Senior Manager
27,749
222
37
Company Invited
1
17
Salaried
2
2
3
Standard
3
Married
2
1
3
0
1
Senior Manager
27,185
401
56
Company Invited
3
12
Salaried
1
2
2
Super Deluxe
5
Divorced
1
0
3
1
0
AVP
28,212
595
58
Self Enquiry
1
8
Salaried
2
2
3
King
4
Single
1
1
3
1
1
VP
34,246
3,705
39
Self Enquiry
1
25
Small Business
2
3
6
Deluxe
3
Married
5
1
5
0
2
Manager
24,489
4,622
37
Company Invited
3
15
Large Business
2
3
4
Deluxe
3
Married
6
0
3
1
2
Manager
23,757
4,675
37
Self Enquiry
1
22
Salaried
2
3
4
Deluxe
3
Married
2
0
4
0
2
Manager
23,512
4,188
22
Self Enquiry
1
10
Small Business
2
4
5
Basic
3
Unmarried
3
0
5
1
3
Executive
21,908
1,942
37
Self Enquiry
1
6
Salaried
1
3
3
Deluxe
4
Married
7
0
1
1
2
Manager
21,447
3,920
60
Self Enquiry
1
10
Small Business
1
3
2
Basic
5
Married
6
1
1
0
2
Executive
21,348
3,711
35
Company Invited
3
17
Salaried
2
3
4
Deluxe
3
Married
3
1
1
1
2
Manager
22,679
4,568
40
Self Enquiry
2
9
Salaried
1
3
5
Deluxe
3
Married
2
0
3
1
1
Manager
23,882
243
40
Self Enquiry
1
30
Large Business
2
3
3
Deluxe
3
Married
2
0
3
1
1
Manager
18,319
1,706
33
Self Enquiry
1
8
Salaried
1
2
3
Basic
5
Married
1
0
3
1
1
Executive
17,707
2,001
32
Self Enquiry
1
9
Salaried
0
2
3
Standard
3
Unmarried
4
0
1
1
0
Senior Manager
26,159
2,095
45
Self Enquiry
3
15
Small Business
2
3
3
Standard
5
Married
5
1
1
0
0
Senior Manager
25,761
3,396
32
Company Invited
3
7
Salaried
1
3
4
Basic
4
Single
3
1
5
1
2
Executive
20,980
116
34
Self Enquiry
1
11
Small Business
0
2
4
Standard
5
Unmarried
3
0
2
0
0
Senior Manager
26,631
3,982
36
Company Invited
1
7
Small Business
2
4
4
Basic
5
Married
6
0
1
0
2
Executive
20,872
2,346
20
Self Enquiry
3
27
Small Business
2
2
1
Basic
3
Single
2
0
3
1
1
Executive
17,678
3,883
37
Self Enquiry
3
10
Small Business
1
4
5
Standard
3
Married
2
0
3
1
1
Senior Manager
26,322
3,267
30
Company Invited
1
17
Salaried
1
4
4
Basic
4
Married
2
0
5
1
1
Executive
21,969
3,365
29
Company Invited
1
7
Small Business
2
3
4
Basic
3
Single
2
1
4
0
1
Executive
20,832
3,738
42
Self Enquiry
1
12
Salaried
2
3
2
Deluxe
4
Unmarried
5
0
5
1
1
Manager
25,548
566
47
Company Invited
3
33
Salaried
1
3
1
Deluxe
3
Unmarried
5
1
4
1
2
Manager
21,397
4,399
28
Self Enquiry
1
13
Small Business
1
4
5
Basic
3
Married
2
0
1
0
2
Executive
20,865
418
26
Self Enquiry
1
29
Salaried
1
2
3
Basic
3
Married
2
0
3
1
1
Executive
17,886
4,805
45
Self Enquiry
1
9
Salaried
1
4
2
Basic
3
Married
3
0
4
1
3
Executive
20,689
3,955
28
Self Enquiry
1
9
Salaried
1
3
4
Basic
5
Married
3
0
3
1
2
Executive
21,019
4,545
45
Self Enquiry
1
15
Salaried
2
4
2
Basic
3
Married
4
1
3
1
1
Executive
21,496
2,881
31
Self Enquiry
3
14
Small Business
2
3
4
Basic
4
Unmarried
2
0
2
1
1
Executive
21,661
4,088
46
Self Enquiry
3
11
Salaried
1
2
4
Deluxe
5
Married
6
1
4
0
1
Manager
23,684
2,803
37
Company Invited
3
10
Small Business
2
3
5
Standard
3
Divorced
6
0
2
0
2
Senior Manager
28,377
966
58
Self Enquiry
1
13
Small Business
1
2
4
Standard
5
Divorced
1
1
4
1
0
Senior Manager
25,008
2,405
32
Company Invited
1
9
Salaried
1
2
3
Basic
3
Single
2
0
4
1
0
Executive
21,209
3,922
39
Company Invited
1
30
Salaried
2
3
5
Standard
3
Unmarried
2
0
3
1
1
Senior Manager
28,204
378
34
Company Invited
3
25
Small Business
2
3
2
Deluxe
3
Single
1
1
2
1
2
Manager
20,304
1,439
36
Self Enquiry
3
9
Small Business
1
3
4
Standard
3
Married
1
0
3
1
0
Senior Manager
22,644
3,990
36
Self Enquiry
3
7
Small Business
2
3
5
Deluxe
5
Unmarried
2
0
1
1
2
Manager
22,990
3,354
24
Self Enquiry
1
7
Salaried
2
3
4
Basic
3
Divorced
3
0
4
0
2
Executive
19,901
4,607
37
Self Enquiry
3
10
Salaried
2
3
5
Standard
3
Married
3
1
1
1
1
Senior Manager
29,003
66
36
Company Invited
1
17
Salaried
2
3
4
Deluxe
4
Unmarried
2
0
4
1
1
Manager
21,499
3,022
39
Company Invited
1
9
Salaried
0
4
2
Deluxe
5
Unmarried
8
1
2
1
3
Manager
24,658
4,887
36
Self Enquiry
1
14
Salaried
2
4
4
Basic
4
Unmarried
3
1
3
1
2
Executive
24,041
826
38
Self Enquiry
2
6
Salaried
2
2
1
Basic
3
Divorced
2
0
4
1
0
Executive
17,844
2,213
59
Self Enquiry
1
8
Salaried
1
3
4
Super Deluxe
3
Single
4
1
5
1
0
AVP
28,726
1,702
59
Self Enquiry
2
12
Small Business
2
2
3
Basic
3
Married
1
0
4
0
0
Executive
17,267
585
23
Self Enquiry
1
12
Salaried
2
3
1
Basic
5
Divorced
2
1
3
1
2
Executive
16,601
2,965
28
Company Invited
3
10
Small Business
1
4
3
Deluxe
3
Married
3
1
2
1
3
Manager
23,325
846
35
Self Enquiry
1
8
Salaried
2
2
4
Standard
4
Married
3
0
4
1
0
Senior Manager
25,274
562
33
Self Enquiry
1
6
Salaried
2
3
3
Basic
3
Single
2
1
3
1
0
Executive
17,686
2,503
38
Self Enquiry
1
7
Salaried
2
3
5
Deluxe
3
Married
3
0
5
1
2
Manager
24,671
220
36
Self Enquiry
1
11
Salaried
2
3
3
Deluxe
4
Single
1
0
2
0
2
Manager
20,914
2,834
44
Self Enquiry
1
19
Salaried
2
3
5
Super Deluxe
4
Married
3
0
3
0
2
AVP
33,014
End of preview.

No dataset card yet

Downloads last month
-

Space using ShanRaja/Customer-Purchase-Prediction 1