Flash Sale: Flat 70% + Addl. 25% Off on all Courses | Use Coupon DS25 in Checkout | Offer Expires In

  Enroll Now

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.


No hints are availble for this assesment

Answer is not availble for this assesment


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

Loading comments...