I am trying to return difference between two data frames but in only some columns.
df1:
df2:
I wrote below to filter difference
df = df.merge (saved, indicator=True, how='left').loc[lambda x: x['_merge']!='both']
And it returned
But I want to return rows that are different in only colA and colB instead of filtering entirely identical rows only, so I can get below dataframe;
what I want: