Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas dataframe compare two dataframes and extract difference

df_diff = pd.concat([df1,df2]).drop_duplicates(keep=False)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pandas #dataframe #compare #dataframes #extract #difference
ADD COMMENT
Topic
Name
1+1 =