FunctionRacerProblemsRace

Count Unique Cities

BeginnerpandasPython

people has columns name and city. Return how many different cities appear, as an int. Cities that differ in upper or lower case count as different.

Example 1

people {"name":["a","b","c"],"city":["Rome","Oslo","Rome"]}
returns 2

Rome and Oslo: 2 cities.

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