Everyone Else
people has columns name and city. Return a list of the names of people who do not live in city, in the order they appear.
Example 1
people {"name":["Ana","Ben","Cy"],"city":["Rome","Oslo","Rome"]}
city "Rome"
returns ["Ben"]
Only Ben lives elsewhere.
Constraints
- The tables are small
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.
More pandas problems
- Max per ColumnBeginner
- Missing Price NamesBeginner
- Names in CityBeginner
- Pick Two ColumnsBeginner
- Rename ColumnsBeginner
- Running Sales TotalBeginner
- Sorted Unique ValuesBeginner
- Swap the LabelsBeginner