Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

find rows in dataframe from another dataframe python

common = df1.merge(df2,on=['col1','col2'])
print(common)
df1[(~df1.col1.isin(common.col1))&(~df1.col2.isin(common.col2))]
 
PREVIOUS NEXT
Tagged: #find #rows #dataframe #dataframe #python
ADD COMMENT
Topic
Name
1+9 =