I have 2 dataframes which I am comparing with below snippet:
df3 = pandas.concat([df1, df2]).drop_duplicates(keep=False)
It works fine, it compares both and as an output I got rows that are different form both of them.
What I would like to achieve is to compare 2 dataframes to get rows that are different but as an output only get/keep rows from the first DataFrame.
Is there an easy way to do this?