compare two dataframes with more than 50 columns and get differences code example
Example 1: pandas difference between two dataframes
source_df.merge(target_df,how='left',indicator=True).loc[lambda x:x['_merged']!='both']
Example 2: python pandas check if two columns are equal
df = pd.DataFrame([[2, 2], [3, 6]], columns = ["col1", "col2"])