I Have a dataframe which has some unique IDs in two of the columns.for e.g
S.no. Column1 Column2 1 00001x 00002x 2 00003j 00005k 3 00002x 00001x 4 00004d 00008e Value can be anything in the string format I want to compare the two column in such a way that either of s.no 1 or 3 data remains. as these id contains the same information. only its order is different.
Basically if for one row value in a column 1 is X and column 2 is Y and for other row value in column 1 is Y and in Column 2 is x then only one of the row should remain.
is that possible in python?