Python Pandas - Find difference between two data frames code example
Example 1: findout not common values between two data frames
df = df1.merge(df2, how = 'outer' ,indicator=True).loc[lambda x : x['_merge']=='left_only']
df
Example 2: pandas difference between two dataframes
source_df.merge(target_df,how='left',indicator=True).loc[lambda x:x['_merged']!='both']