I have two DataFrames.
df1:
A | B | C
-----|---------|---------|
25zx | b(50gh) | |
50tr | a(70lc) | c(50gh) |
df2:
A | B
-----|-----
25zx | T
50gh | K
50tr | K
70lc | T
I want to replace the values in df1. The row that I am comparing is df2['A'], but the value which I want to put into the df1 is a value from row df['B']. Note my goal is for the new value to replace the whole cell.
So my final table would look like:
df3:
A | B | C
-----|---------|---------|
T | K | |
K | T | K |