Apr-20-2024, 06:28 PM
(This post was last modified: Apr-20-2024, 06:28 PM by deanhystad.)
Your desired output appears arbitrary. I cannot think of any logic which would produce your output, let alone find a pandas function to implement that logic. Why is (1, A, A) good but (1, A, B) bad? If (1, A, B) is bad, why is (1, Q, R) good? Please describe the logic behind your desired output.