Ids in Only One Table
left and right each have a column id (no repeats inside one table). Return a sorted list of the ids that appear in exactly one of the two tables.
Example 1
left {"id":[1,2,3]}
right {"id":[2,3,4]}
returns [1,4]
1 is only on the left and 4 only on the right.
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
- InitialsEasy
- Invalid TweetsEasy
- Latest Row per PlayerEasy
- Longest TitleEasy
- Make SlugsEasy
- Median per GroupEasy
- Moving Sum of ThreeEasy
- Names Starting WithEasy