I have 2 different dataframe Ex:
Df1:
User_id User_name User_phn
1 Alex 1234123
2 Danny 4234123
3 Bryan 5234123
Df2:
User_id User_name User_phn
1 Alex 3234123
2 Chris 4234123
3 Bryan 5234123
4 Bexy 6234123
user_id is the primary key in both the tables and I need to compare both the dataframes using the user_id as a condition and result me with values which are having matching and mismatch values without merging the dataframes into a new dataframe. We will be processing more than 100 millions of records with huge datasets, that why I do not want to merge again in a new dataframe which I think would consume memory again.
Result:
User_id User_name User_phn
1 Alex Mismatch
2 Mismatch 4234123
3 Bryan 5234123
4 Mismatch Mismatch