I need to compare dataframe A and dataframe B to update two columns on dataframe A. For example: A_df:
employee status 1 status 2
A1 AB CD
B1 AB DC
C1 BA DC
D1 BA DC
B_df:
employee status 1 status 2
A1 AB CD
B1 AB DC
C1 BA CD
Desired output: A_df
employee status 1 status 2
A1 AB CD
B1 AB DC
C1 BA CD
D1 BA DC
I've tried following.
A_df["status 1"] = B_df["status 1"]
A_df["status 2"] = B_df["status 2"]
And then, got following
employee status 1 status 2
A1 AB CD
B1 AB DC
C1 BA CD
D1 NaN NaN