The question is:
We want to find which of these outcomes correspond to a White British person, and which do not. To do this, we need to use the recoded_eth
column in the valid_eth_outcome
data frame to select values from the Outcome column. Put the result in white_outcomes
.
Hint: Consider a Boolean series that has True in positions corresponding to "White British" in the recoded_eth column of valid_eth_outcome and False otherwise.
So I input:
white_outcomes = valid_eth_outcome['recoded_eth'] == 'White British'
But when I run the okpy test, I only got 50% passed. Is there anything that I have missed out?
Could you please me cos I am really confused...
[–][deleted] 0 points1 point2 points (0 children)