Sorted Unique Values
posts has columns id and tag (text). Return a list of the different tags, each once, in alphabetical order.
Example 1
posts {"id":[1,2,3,4],"tag":["sun","ant","sun","bee"]}
returns ["ant","bee","sun"]
ant, bee, sun.
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
- Swap the LabelsBeginner
- Table ShapeBeginner
- Top ScoresBeginner
- Upper QuartileBeginner
- Wanted StatusesBeginner
- Add Total ColumnEasy
- All Emails OnceEasy
- Biggest Single NumberEasy