0

I have two frames that share a column 'company' . I want to check which entries from DF2 are NOT in DF1, taking only the 'company' column into account. Right now I do it through a loop like this:

Unique = []
for index, row in DF2['Email'].iterrows():
    if row['Email'] not in DF2['Email'].values:
        Unique.append(row)
unique_df = pd.DataFrame(Unique)

I feel there should be a .join method that does this but I can't seem to figure it out. I don't have a lot of experience with sql and am still a relative beginner with pandas and would appreciate some help.

cs95
  • 379,657
  • 97
  • 704
  • 746
Dutchpirate91
  • 109
  • 1
  • 5

0 Answers0