Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python pandas difference between two data frames

diff_df = pd.merge(df1, df2, how='outer', indicator='Exist')

diff_df = diff_df.loc[diff_df['Exist'] != 'both']
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #pandas #difference #data #frames
ADD COMMENT
Topic
Name
3+7 =