Reputation: 342
I wish to use this sql query using pure pandas:
select *
from A
where Id is not in (select id from B)
Is there something using pandas? Any alternative suggestion?
Upvotes: 0
Views: 275
Reputation: 26
In Pandas, you can implement it this way :
myDF[~myDF.Id.isin(myDF2.Id)]
Upvotes: 1