A sales director wants to reward the reps ranked 1st or 2nd by deal count in each region, using competition ranking: reps with equal deals share a rank, and the next rank skips ahead (after two reps tie for 1st, the following rep is 3rd, not 2nd).
sales
Your task: return region, rep, and deals for every rep whose competition rank within their region is 1 or 2. Reps tied inside the top two all qualify; a rep pushed down to 3rd by a tie above them does not.
Assign your answer DataFrame to result. Row order doesn't matter.