Duplicate Emails
people has columns id and email. Return a list of the emails that appear in more than one row, each listed once, in alphabetical order.
Example 1
people {"id":[1,2,3],"email":["a@x.com","b@x.com","a@x.com"]}
returns ["a@x.com"]
Only a@x.com appears twice.
Constraints
- The result may be an empty list
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.
More pandas problems
- Email DomainsEasy
- Find Customer RefereeEasy
- First Login DateEasy
- Fix Name CapitalsEasy
- Grade LettersEasy
- Ids in Only One TableEasy
- InitialsEasy
- Invalid TweetsEasy