I have a dataframe containing several rows with pairs in this format
41,25
25,41
23,41
41,23
I only want pairs that are distinct and the order doesn't matter. So for example the dataframe should look like this instead
41,25
41,25
41,23
41,23
So I can count how many times the combination 41 and 25 occures.
So I want to run through the whole dataframe and sort each string so the highest values comes first.(or lowest, doesn't matter).
Hope for you help. I'm guessing it's pretty simple, but can't figure it out.
Thanks