Question: the data set: https://github.com/pcsanwald/kaggle-titanic/blob/master/train.csv Show all female passengers on the titanic_test dataset. Show all passengers age 60 and above in titanic_test dataset. Show all first-class
the data set: https://github.com/pcsanwald/kaggle-titanic/blob/master/train.csv
- Show all female passengers on the titanic_test dataset.
- Show all passengers age 60 and above in titanic_test dataset.
- Show all first-class passengers of the titanic_test dataset.
Data Pre-Processing
- What is the average age of female passengers in both titanic_train and titanic_test dataset?
- Count the number of empty values of Age variable in the titanic_test dataset.
- Compute the median age for both male and female in the titanic_test dataset.
- What is the total number of male and female that have survived in both titanic_train
and titanic_test datasets.
- What is the percentage of male and female that have survived in both titanic_train and
titanic_test datasets.
11. Replace the missing values of age variable of male passengers by the median age of
all male passengers in the titanic_test dataset.
12. Replace the missing values of age variable of female passengers by the median age of all female passengers in the titanic_test dataset.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
