Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

difference between 2 dataframes

df1.merge(df2,indicator = True, how='left').loc[lambda x : x['_merge']!='both']
Out[421]: 
   A  B     _merge
1  2  3  left_only
2  3  4  left_only
3  3  4  left_only
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #difference #dataframes
ADD COMMENT
Topic
Name
7+1 =