Enrollments closing soon for Post Graduate Certificate Program in Applied Data Science & AI By IIT Roorkee | 3 Seats Left

  Apply Now

Project - Predicting Titanic Passenger Survival using Machine Learning and Python

8 / 21

Titanic Machine Learning Project - Find Number of Female Passengers

Find the number of female passengers on-board from the training dataset.

INSTRUCTIONS

Use the value_count() function to find the number of female passengers on-board from the training dataset. The gender of passengers can be found using the "Sex" column.

train_data["Sex"].value_counts()[1]

Note: The [1] in the train_data["Sex"].value_counts()[1] gives you the value of the second element.

Get Hint See Answer


Note - Having trouble with the assessment engine? Follow the steps listed here

Loading comments...