I would like to replace the values in the column(charge) of Data 'B' into the column(charge) of Data 'A' by comparing the two dataFrames.
Example:
data A: data B:
Codes | charge Codes | charge
----------------- ---------------------
Abc123 100 Abc123 50
Abc345 75 Abc345 75
Abc645 0 Abc645 0
Abc456 200 Abc456 200
Abc789 123
:: :: ::
:: :: ::
So on and so forth
Data 'B' has predetermined values for those codes. Please, can someone help me do this in python.