-1

I've 2 dataframes, df1 and df2, with an emails column (and other non important ones.)

I want to drop rows in df2 that contain emails that are already in df1.

How can I do that?

pault
  • 41,343
  • 15
  • 107
  • 149
remc
  • 161
  • 1
  • 2
  • 10

1 Answers1

0

You can do something like this:

df_1[~df_1['email_column'].isin(df_2['email_column'].tolist())
Amir Imani
  • 3,118
  • 2
  • 22
  • 24