0

I wanted to extract the rows in a column in a pandas dataframe1 which are not present in another column on pandas dataframe2 e.g.

enter image description here

I wanted this kind of result. I used .isin function of pandas but got only boolean output of "true or false" or "0 or 1".

    `dataframe1.isin(dataframe2)`
and `dataframe1.isin(dataframe2).astype(int)`

I tried using .unique also but is not the right way as it will give me unique value of dataframe2 also. If it possible please help. Please don't my if I am asking silly question as I am a new learner. Thank You :)

Siva
  • 25
  • 4

0 Answers0