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 2 new columns ({'Cabin', 'Embarked'}) and 11 missing columns ({'Cabin_B', 'Port_Q', 'Cabin_D', 'Unnamed: 0', 'Port_S', 'Cabin_T', 'Cabin_G', 'Cabin_E', 'Port_X', 'Cabin_C', 'Cabin_F'}).

This happened while the csv dataset builder was generating data using

hf://datasets/0wI/titanic-survival/data/raw/train.csv (at revision ac10089afaeb7f76db66cd406818a7ccee0e51bf)

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 1871, in _prepare_split_single
                  writer.write_table(table)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 623, 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 2293, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2241, in cast_table_to_schema
                  raise CastError(
              datasets.table.CastError: Couldn't cast
              PassengerId: int64
              Survived: int64
              Pclass: int64
              Name: string
              Sex: string
              Age: double
              SibSp: int64
              Parch: int64
              Ticket: string
              Fare: double
              Cabin: string
              Embarked: string
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 1584
              to
              {'Unnamed: 0': Value(dtype='int64', id=None), 'PassengerId': Value(dtype='int64', id=None), 'Pclass': Value(dtype='int64', id=None), 'Name': Value(dtype='string', id=None), 'Sex': Value(dtype='int64', id=None), 'Age': Value(dtype='float64', id=None), 'SibSp': Value(dtype='int64', id=None), 'Parch': Value(dtype='int64', id=None), 'Ticket': Value(dtype='float64', id=None), 'Fare': Value(dtype='float64', id=None), 'Cabin_B': Value(dtype='float64', id=None), 'Cabin_C': Value(dtype='float64', id=None), 'Cabin_D': Value(dtype='float64', id=None), 'Cabin_E': Value(dtype='float64', id=None), 'Cabin_F': Value(dtype='float64', id=None), 'Cabin_G': Value(dtype='float64', id=None), 'Cabin_T': Value(dtype='float64', id=None), 'Port_Q': Value(dtype='float64', id=None), 'Port_S': Value(dtype='float64', id=None), 'Port_X': Value(dtype='float64', id=None), 'Survived': Value(dtype='int64', id=None)}
              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 1438, 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 1050, in convert_to_parquet
                  builder.download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 925, in download_and_prepare
                  self._download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1001, 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 1742, 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 1873, 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 2 new columns ({'Cabin', 'Embarked'}) and 11 missing columns ({'Cabin_B', 'Port_Q', 'Cabin_D', 'Unnamed: 0', 'Port_S', 'Cabin_T', 'Cabin_G', 'Cabin_E', 'Port_X', 'Cabin_C', 'Cabin_F'}).
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/0wI/titanic-survival/data/raw/train.csv (at revision ac10089afaeb7f76db66cd406818a7ccee0e51bf)
              
              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
PassengerId
int64
Pclass
int64
Name
string
Sex
int64
Age
float64
SibSp
int64
Parch
int64
Ticket
float64
Fare
float64
Cabin_B
float64
Cabin_C
float64
Cabin_D
float64
Cabin_E
float64
Cabin_F
float64
Cabin_G
float64
Cabin_T
float64
Port_Q
float64
Port_S
float64
Port_X
float64
Survived
int64
0
1
3
Braund, Mr. Owen Harris
1
22
1
0
21,171
7.25
0
0
0
0
1
0
0
0
1
0
0
1
2
1
Cumings, Mrs. John Bradley (Florence Briggs Thayer)
0
38
1
0
17,599
71.2833
0
1
0
0
0
0
0
0
0
0
1
2
3
3
Heikkinen, Miss. Laina
0
26
0
0
3,101,282
7.925
0
0
0
0
1
0
0
0
1
0
1
3
4
1
Futrelle, Mrs. Jacques Heath (Lily May Peel)
0
35
1
0
113,803
53.1
0
1
0
0
0
0
0
0
1
0
1
4
5
3
Allen, Mr. William Henry
1
35
0
0
373,450
8.05
0
0
0
0
1
0
0
0
1
0
0
5
6
3
Moran, Mr. James
1
25.962264
0
0
330,877
8.4583
0
0
0
0
1
0
0
1
0
0
0
6
7
1
McCarthy, Mr. Timothy J
1
54
0
0
17,463
51.8625
0
0
0
1
0
0
0
0
1
0
0
7
8
3
Palsson, Master. Gosta Leonard
1
2
3
1
349,909
21.075
0
0
0
0
1
0
0
0
1
0
0
8
9
3
Johnson, Mrs. Oscar W (Elisabeth Vilhelmina Berg)
0
27
0
2
347,742
11.1333
0
0
0
0
1
0
0
0
1
0
1
9
10
2
Nasser, Mrs. Nicholas (Adele Achem)
0
14
1
0
237,736
30.0708
0
0
0
0
1
0
0
0
0
0
1
10
11
3
Sandstrom, Miss. Marguerite Rut
0
4
1
1
9,549
16.7
0
0
0
0
0
1
0
0
1
0
1
11
12
1
Bonnell, Miss. Elizabeth
0
58
0
0
113,783
26.55
0
1
0
0
0
0
0
0
1
0
1
12
13
3
Saundercock, Mr. William Henry
1
20
0
0
2,151
8.05
0
0
0
0
1
0
0
0
1
0
0
13
14
3
Andersson, Mr. Anders Johan
1
39
1
5
347,082
31.275
0
0
0
0
1
0
0
0
1
0
0
14
15
3
Vestrom, Miss. Hulda Amanda Adolfina
0
14
0
0
350,406
7.8542
0
0
0
0
1
0
0
0
1
0
0
15
16
2
Hewlett, Mrs. (Mary D Kingcome)
0
55
0
0
248,706
16
0
0
0
0
1
0
0
0
1
0
1
16
17
3
Rice, Master. Eugene
1
2
4
1
382,652
29.125
0
0
0
0
1
0
0
1
0
0
0
17
18
2
Williams, Mr. Charles Eugene
1
30.81538
0
0
244,373
13
0
0
0
0
1
0
0
0
1
0
1
18
19
3
Vander Planke, Mrs. Julius (Emelia Maria Vandemoortele)
0
31
1
0
345,763
18
0
0
0
0
1
0
0
0
1
0
0
19
20
3
Masselmani, Mrs. Fatima
0
22.185329
0
0
2,649
7.225
0
0
0
0
1
0
0
0
0
0
1
20
21
2
Fynney, Mr. Joseph J
1
35
0
0
239,865
26
0
0
0
0
1
0
0
0
1
0
0
21
22
2
Beesley, Mr. Lawrence
1
34
0
0
248,698
13
0
0
1
0
0
0
0
0
1
0
1
22
23
3
McGowan, Miss. Anna "Annie"
0
15
0
0
330,923
8.0292
0
0
0
0
1
0
0
1
0
0
1
23
24
1
Sloper, Mr. William Thompson
1
28
0
0
113,788
35.5
0
0
0
0
0
0
0
0
1
0
1
24
25
3
Palsson, Miss. Torborg Danira
0
8
3
1
349,909
21.075
0
0
0
0
1
0
0
0
1
0
0
25
26
3
Asplund, Mrs. Carl Oscar (Selma Augusta Emilia Johansson)
0
38
1
5
347,077
31.3875
0
0
0
0
1
0
0
0
1
0
1
26
27
3
Emir, Mr. Farred Chehab
1
25.962264
0
0
2,631
7.225
0
0
0
0
1
0
0
0
0
0
0
27
28
1
Fortune, Mr. Charles Alexander
1
19
3
2
19,950
263
0
1
0
0
0
0
0
0
1
0
0
28
29
3
O'Dwyer, Miss. Ellen "Nellie"
0
22.185329
0
0
330,959
7.8792
0
0
0
0
1
0
0
1
0
0
1
29
30
3
Todoroff, Mr. Lalio
1
25.962264
0
0
349,216
7.8958
0
0
0
0
1
0
0
0
1
0
0
30
31
1
Uruchurtu, Don. Manuel E
1
40
0
0
17,601
27.7208
0
1
0
0
0
0
0
0
0
0
0
31
32
1
Spencer, Mrs. William Augustus (Marie Eugenie)
0
37.037594
1
0
17,569
146.5208
1
0
0
0
0
0
0
0
0
0
1
32
33
3
Glynn, Miss. Mary Agatha
0
22.185329
0
0
335,677
7.75
0
0
0
0
1
0
0
1
0
0
1
33
34
2
Wheadon, Mr. Edward H
1
66
0
0
24,579
10.5
0
0
0
0
1
0
0
0
1
0
0
34
35
1
Meyer, Mr. Edgar Joseph
1
28
1
0
17,604
82.1708
0
1
0
0
0
0
0
0
0
0
0
35
36
1
Holverson, Mr. Alexander Oskar
1
42
1
0
113,789
52
0
1
0
0
0
0
0
0
1
0
0
36
37
3
Mamee, Mr. Hanna
1
25.962264
0
0
2,677
7.2292
0
0
0
0
1
0
0
0
0
0
1
37
38
3
Cann, Mr. Ernest Charles
1
21
0
0
2,152
8.05
0
0
0
0
1
0
0
0
1
0
0
38
39
3
Vander Planke, Miss. Augusta Maria
0
18
2
0
345,764
18
0
0
0
0
1
0
0
0
1
0
0
39
40
3
Nicola-Yarred, Miss. Jamila
0
14
1
0
2,651
11.2417
0
0
0
0
1
0
0
0
0
0
1
40
41
3
Ahlin, Mrs. Johan (Johanna Persdotter Larsson)
0
40
1
0
7,546
9.475
0
0
0
0
1
0
0
0
1
0
0
41
42
2
Turpin, Mrs. William John Robert (Dorothy Ann Wonnacott)
0
27
1
0
11,668
21
0
0
0
0
1
0
0
0
1
0
0
42
43
3
Kraeff, Mr. Theodor
1
25.962264
0
0
349,253
7.8958
0
0
0
0
1
0
0
0
0
0
0
43
44
2
Laroche, Miss. Simonne Marie Anne Andree
0
3
1
2
2,123
41.5792
0
0
0
0
1
0
0
0
0
0
1
44
45
3
Devaney, Miss. Margaret Delia
0
19
0
0
330,958
7.8792
0
0
0
0
1
0
0
1
0
0
1
45
46
3
Rogers, Mr. William John
1
25.962264
0
0
23,567
8.05
0
0
0
0
1
0
0
0
1
0
0
46
47
3
Lennon, Mr. Denis
1
25.962264
1
0
370,371
15.5
0
0
0
0
1
0
0
1
0
0
0
47
48
3
O'Driscoll, Miss. Bridget
0
22.185329
0
0
14,311
7.75
0
0
0
0
1
0
0
1
0
0
1
48
49
3
Samaan, Mr. Youssef
1
25.962264
2
0
2,662
21.6792
0
0
0
0
1
0
0
0
0
0
0
49
50
3
Arnold-Franchi, Mrs. Josef (Josefine Franchi)
0
18
1
0
349,237
17.8
0
0
0
0
1
0
0
0
1
0
0
50
51
3
Panula, Master. Juha Niilo
1
7
4
1
3,101,295
39.6875
0
0
0
0
1
0
0
0
1
0
0
51
52
3
Nosworthy, Mr. Richard Cater
1
21
0
0
39,886
7.8
0
0
0
0
1
0
0
0
1
0
0
52
53
1
Harper, Mrs. Henry Sleeper (Myna Haxtun)
0
49
1
0
17,572
76.7292
0
0
1
0
0
0
0
0
0
0
1
53
54
2
Faunthorpe, Mrs. Lizzie (Elizabeth Anne Wilkinson)
0
29
1
0
2,926
26
0
0
0
0
1
0
0
0
1
0
1
54
55
1
Ostby, Mr. Engelhart Cornelius
1
65
0
1
113,509
61.9792
1
0
0
0
0
0
0
0
0
0
0
55
56
1
Woolner, Mr. Hugh
1
41.029272
0
0
19,947
35.5
0
1
0
0
0
0
0
0
1
0
1
56
57
2
Rugg, Miss. Emily
0
21
0
0
31,026
10.5
0
0
0
0
1
0
0
0
1
0
1
57
58
3
Novel, Mr. Mansouer
1
28.5
0
0
2,697
7.2292
0
0
0
0
1
0
0
0
0
0
0
58
59
2
West, Miss. Constance Mirium
0
5
1
2
34,651
27.75
0
0
0
0
1
0
0
0
1
0
1
59
60
3
Goodwin, Master. William Frederick
1
11
5
2
2,144
46.9
0
0
0
0
1
0
0
0
1
0
0
60
61
3
Sirayanian, Mr. Orsen
1
22
0
0
2,669
7.2292
0
0
0
0
1
0
0
0
0
0
0
61
62
1
Icard, Miss. Amelie
0
38
0
0
113,572
80
1
0
0
0
0
0
0
0
0
1
1
62
63
1
Harris, Mr. Henry Birkhardt
1
45
1
0
36,973
83.475
0
1
0
0
0
0
0
0
1
0
0
63
64
3
Skoog, Master. Harald
1
4
3
2
347,088
27.9
0
0
0
0
1
0
0
0
1
0
0
64
65
1
Stewart, Mr. Albert A
1
41.029272
0
0
17,605
27.7208
0
1
0
0
0
0
0
0
0
0
0
65
66
3
Moubarek, Master. Gerios
1
25.962264
1
1
2,661
15.2458
0
0
0
0
1
0
0
0
0
0
1
66
67
2
Nye, Mrs. (Elizabeth Ramell)
0
29
0
0
29,395
10.5
0
0
0
0
1
0
0
0
1
0
1
67
68
3
Crease, Mr. Ernest James
1
19
0
0
3,464
8.1583
0
0
0
0
1
0
0
0
1
0
0
68
69
3
Andersson, Miss. Erna Alexandra
0
17
4
2
3,101,281
7.925
0
0
0
0
1
0
0
0
1
0
1
69
70
3
Kink, Mr. Vincenz
1
26
2
0
315,151
8.6625
0
0
0
0
1
0
0
0
1
0
0
70
71
2
Jenkin, Mr. Stephen Curnow
1
32
0
0
33,111
10.5
0
0
0
0
1
0
0
0
1
0
0
71
72
3
Goodwin, Miss. Lillian Amy
0
16
5
2
2,144
46.9
0
0
0
0
1
0
0
0
1
0
0
72
73
2
Hood, Mr. Ambrose Jr
1
21
0
0
14,879
73.5
0
0
0
0
1
0
0
0
1
0
0
73
74
3
Chronopoulos, Mr. Apostolos
1
26
1
0
2,680
14.4542
0
0
0
0
1
0
0
0
0
0
0
74
75
3
Bing, Mr. Lee
1
32
0
0
1,601
56.4958
0
0
0
0
1
0
0
0
1
0
1
75
76
3
Moen, Mr. Sigurd Hansen
1
25
0
0
348,123
7.65
0
0
0
0
1
0
0
0
1
0
0
76
77
3
Staneff, Mr. Ivan
1
25.962264
0
0
349,208
7.8958
0
0
0
0
1
0
0
0
1
0
0
77
78
3
Moutal, Mr. Rahamin Haim
1
25.962264
0
0
374,746
8.05
0
0
0
0
1
0
0
0
1
0
0
78
79
2
Caldwell, Master. Alden Gates
1
0.83
0
2
248,738
29
0
0
0
0
1
0
0
0
1
0
1
79
80
3
Dowdell, Miss. Elizabeth
0
30
0
0
364,516
12.475
0
0
0
0
1
0
0
0
1
0
1
80
81
3
Waelens, Mr. Achille
1
22
0
0
345,767
9
0
0
0
0
1
0
0
0
1
0
0
81
82
3
Sheerlinck, Mr. Jan Baptist
1
29
0
0
345,779
9.5
0
0
0
0
1
0
0
0
1
0
1
82
83
3
McDermott, Miss. Brigdet Delia
0
22.185329
0
0
330,932
7.7875
0
0
0
0
1
0
0
1
0
0
1
83
84
1
Carrau, Mr. Francisco M
1
28
0
0
113,059
47.1
0
1
0
0
0
0
0
0
1
0
0
84
85
2
Ilett, Miss. Bertha
0
17
0
0
14,885
10.5
0
0
0
0
1
0
0
0
1
0
1
85
86
3
Backstrom, Mrs. Karl Alfred (Maria Mathilda Gustafsson)
0
33
3
0
3,101,278
15.85
0
0
0
0
1
0
0
0
1
0
1
86
87
3
Ford, Mr. William Neal
1
16
1
3
6,608
34.375
0
0
0
0
1
0
0
0
1
0
0
87
88
3
Slocovski, Mr. Selman Francis
1
25.962264
0
0
392,086
8.05
0
0
0
0
1
0
0
0
1
0
0
88
89
1
Fortune, Miss. Mabel Helen
0
23
3
2
19,950
263
0
1
0
0
0
0
0
0
1
0
1
89
90
3
Celotti, Mr. Francesco
1
24
0
0
343,275
8.05
0
0
0
0
1
0
0
0
1
0
0
90
91
3
Christmann, Mr. Emil
1
29
0
0
343,276
8.05
0
0
0
0
1
0
0
0
1
0
0
91
92
3
Andreasson, Mr. Paul Edvin
1
20
0
0
347,466
7.8542
0
0
0
0
1
0
0
0
1
0
0
92
93
1
Chaffee, Mr. Herbert Fuller
1
46
1
0
5,734
61.175
0
0
0
1
0
0
0
0
1
0
0
93
94
3
Dean, Mr. Bertram Frank
1
26
1
2
2,315
20.575
0
0
0
0
1
0
0
0
1
0
0
94
95
3
Coxon, Mr. Daniel
1
59
0
0
364,500
7.25
0
0
0
0
1
0
0
0
1
0
0
95
96
3
Shorney, Mr. Charles Joseph
1
25.962264
0
0
374,910
8.05
0
0
0
0
1
0
0
0
1
0
0
96
97
1
Goldschmidt, Mr. George B
1
71
0
0
17,754
34.6542
0
0
0
0
0
0
0
0
0
0
0
97
98
1
Greenfield, Mr. William Bertram
1
23
0
1
17,759
63.3583
0
0
1
0
0
0
0
0
0
0
1
98
99
2
Doling, Mrs. John T (Ada Julia Bone)
0
34
0
1
231,919
23
0
0
0
0
1
0
0
0
1
0
1
99
100
2
Kantor, Mr. Sinai
1
34
1
0
244,367
26
0
0
0
0
1
0
0
0
1
0
0
End of preview.

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

Titanic Survival Dataset

Raw and processed data used in a Kaggle project for survival prediction on the Titanic.

Full project and explanation available on GitHub:
๐Ÿ”— https://github.com/JulienDesdo/AI-Projects

Downloads last month
2