VARIABLE DESCRIPTIONS ( PYTHON)
Survived - Survival (0 = No; 1 = Yes)
Pclass - Passenger Class (1 = 1st; 2 = 2nd; 3 = 3rd)
Name - Name
Sex - Sex
Age - Age
SibSp - Number of Siblings/Spouses Aboard
Parch - Number of Parents/Children Aboard
Ticket - Ticket Number
Fare - Passenger Fare (British pound)
Cabin - Cabin
Embarked - Port of Embarkation (C = Cherbourg, France; Q =
Queenstown, UK; S = Southampton - Cobh, Ireland)
Use a barchart to check target variable (survived) counts
Check missing values. How many missing vales each column has
Drop all missng values
Converting Sex which is a categorical variable to a dummy
indicators.1 = male / 0 = female
Converting Embarked which is a categorical variable to a dummy
variable
Find the probabilty of survival a child in the boat
Which group has the bigger chance of survival? Men, women or
children
draw a plot (pick the best plot) to show the chance of servival
between first and third class women
what is the probability that a pasanger survived ?
Did passenger class make a difference in survuval range?
In [21]:
VARIABLE DESCRIPTIONS ( PYTHON) Survived - Survival (0 = No; 1 = Yes) Pclass - Passenger Class (1 = 1st; 2 = 2nd; 3 = 3r
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am