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

  1. Show all female passengers on the titanic_test dataset.

  1. Show all passengers age 60 and above in titanic_test dataset.
  2. Show all first-class passengers of the titanic_test dataset.

Data Pre-Processing

  1. What is the average age of female passengers in both titanic_train and titanic_test dataset?
  2. Count the number of empty values of Age variable in the titanic_test dataset.
  3. Compute the median age for both male and female in the titanic_test dataset.
  4. What is the total number of male and female that have survived in both titanic_train

and titanic_test datasets.

  1. 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!