FunctionRacerProblemsRace

Ids in Only One Table

EasypandasPython

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

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