FunctionRacerProblemsRace

Names in City

BeginnerpandasPython

people has columns name and city. Return a list of the names of people whose city is exactly city, in the order they appear.

Example 1

people {"name":["Ana","Ben","Cy"],"city":["Rome","Oslo","Rome"]}
city "Rome"
returns ["Ana","Cy"]

Ana and Cy live in Rome.

Constraints

Race itor take your time

Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.

More pandas problems