Titanic passengers dataset
Passengers of the RMS Titanic with survival (0/1), class, sex, age, fare and port of embarkation. The classic dataset for logistic regression and chi-square tests.
891 rows · 15 columns · CSV · one of the example datasets distributed with the seaborn Python library.
Columns
This is a wide dataset; the first 10 of 15 columns are listed.
| Column | Type |
|---|---|
| survived | numeric |
| pclass | numeric |
| sex | text |
| age | numeric |
| sibsp | numeric |
| parch | numeric |
| fare | numeric |
| embarked | text |
| class | text |
| who | text |
Summary statistics
Computed from all 891 rows. For numeric columns: mean, standard deviation and range; for text columns: the most common values.
| Numeric column | Mean | SD | Min | Median | Max | Missing |
|---|---|---|---|---|---|---|
| survived | 0.3838 | 0.4866 | 0 | 0 | 1 | 0 |
| pclass | 2.309 | 0.8361 | 1 | 3 | 3 | 0 |
| age | 29.7 | 14.53 | 0.42 | 28 | 80 | 177 |
| sibsp | 0.523 | 1.103 | 0 | 0 | 8 | 0 |
| parch | 0.3816 | 0.8061 | 0 | 0 | 6 | 0 |
| fare | 32.2 | 49.69 | 0 | 14.45 | 512.3 | 0 |
| Text column | Distinct values | Most common | Missing |
|---|---|---|---|
| sex | 2 | male (577), female (314) | 0 |
| embarked | 3 | S (644), C (168), Q (77) | 2 |
| class | 3 | Third (491), First (216), Second (184) | 0 |
| who | 3 | man (537), woman (271), child (83) | 0 |
| adult_male | 2 | True (537), False (354) | 0 |
| deck | 7 | C (59), B (47), D (33), E (32) | 688 |
| embark_town | 3 | Southampton (644), Cherbourg (168), Queenstown (77) | 2 |
| alive | 2 | no (549), yes (342) | 0 |
Preview (first 8 rows)
| survived | pclass | sex | age | sibsp | parch | fare | embarked | class | who |
|---|---|---|---|---|---|---|---|---|---|
| 0 | 3 | male | 22.0 | 1 | 0 | 7.25 | S | Third | man |
| 1 | 1 | female | 38.0 | 1 | 0 | 71.2833 | C | First | woman |
| 1 | 3 | female | 26.0 | 0 | 0 | 7.925 | S | Third | woman |
| 1 | 1 | female | 35.0 | 1 | 0 | 53.1 | S | First | woman |
| 0 | 3 | male | 35.0 | 0 | 0 | 8.05 | S | Third | man |
| 0 | 3 | male | 0 | 0 | 8.4583 | Q | Third | man | |
| 0 | 1 | male | 54.0 | 0 | 0 | 51.8625 | S | First | man |
| 0 | 3 | male | 2.0 | 3 | 1 | 21.075 | S | Third | child |