How do I copy a row from an existing dataframe df_a into a new dataframe df_b? Also, a cell from dataframe df_a into the new dataframe df_b? See the following example:
for index, row in df__data.iterrows():
     for i in range(df__attributes_to_compare.shape[0]):
        
        if row[df__attributes_to_compare["info_a"].values[i]] != row[df__attributes_to_compare["info_b"].values[i]]:      
             
               # new_df.append(key columns values + unsimiliar compared values)
df__data:
| key1 | key2 | key3 | attrb1 | attrb2 | attrb3 | 
|---|---|---|---|---|---|
| sfdg | dagd | dgsg | 12 | 43 | 24 | 
| afrtf | yxcbb | ertet | 34 | 45 | 34 | 
df__attributes_to_compare:
| info_a | info_b | 
|---|---|
| attrb1 | attrb2 | 
| attrb1 | attrb3 | 
new_df, target output:
| key1 | key2 | key3 | value1 | value2 | 
|---|---|---|---|---|
| sfdg | dagd | dgsg | 12 | 43 | 
| sfdg | dagd | dgsg | 12 | 24 | 
| afrtf | yxcbb | ertet | 34 | 45 | 
The values that do not match are stored in value1 and value2.
 
    