I am looking for a way to merge two dataframe based on two columns containing ids that could be considered as id1, id2 pair or id2, id1 pair.
id1, id2
id2, id1
I