Introduction
Course Recap
Final challenge
16. Final challenge – exercise 6
Summary

Instruction

Perfect! Let's move on.

Exercise

Modify the DataFrame provided in the template by completing these steps:

  • Only show rows for 2017.
  • Only show rows with sex equal to 'Females'.
  • Create a new column named unable to work, which will be calculated as population (x 1,000) minus labour_force (x 1,000).
  • Delete the row with status equal to 'Born in Canada'.
  • Delete the status column.

Store your final DataFrame in a variable named canada_2017_female_immigrants.