I have 2 data frames that look like this
Df1 City Code ColA Col..Z LA LAA LA LAB LA LAC Df2 Code ColA Col..Z LA LAA NY NYA CH CH1 What I'm trying to do have the result of
df3 Code ColA Col..Z NY NYA CH CH1 Normally I would loop through each row in df2 and say:
Df3 = If df2.row['Code'] in df1 then drop it.
But I want to find a pythonic pandas way to do it instead of looping through the dataframe. I was looking at examples using joins or merging but I cant seem to work it out.


