I have the following 2 columns, from a Pandas DataFrame:
antecedents consequents
apple orange
orange apple
apple water
apple pineapple
water lemon
lemon water
I would like to remove duplicates that appear as bot antecedents and consequents, keeping only the first appearing, and thus obtain:
antecedents consequents
apple orange
apple water
apple pineapple
water lemon
How can I achieve that using Pandas?