Skip to content
Advertisement

Python pandas : How to find difference between two dataframe based on single column

I have two dataframes

JavaScript

I am trying to find out the difference between these two dataframes based on the column Fruit

This is what i am doing now but i am not getting the expected output

JavaScript

Expected output

JavaScript

Advertisement

Answer

You can use the negated isin:

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement