I have a large DataFrame and I want to change the column value 'Final_Status' for the matching fields:
#df_full:
EMG Final_Status
G05AT Fail
G05AZ Fail
O05AP Pass
O05AZ Fail
O15AP Fail
O51AK Fail
T05AP Fail
#df_overwrite:
EMG Final_Status
G05AT Pass
G05AZ Pass
#final result:
#df_full:
EMG Final_Status
G05AT Pass
G05AZ Pass
O05AP Pass
O05AZ Fail
O15AP Fail
O51AK Fail
T05AP Fail
I can do it by looping over all rows of the smaller df (df_overwrite) but loops make my code very slow. Is there another way?