I have two dataframes
df_a
|id |name| email|
|0 | Jack | [email protected]|
|1 | James | [email protected]|
|2 | Alice | [email protected]|
df_b
|id |name| email|
|2 | Alice | [email protected] |
|3 | Allen | [email protected] |
|4 | Amy | [email protected] |
I want to merge two dataframe base on id,and using df_a's email .get result like this:
df_result
|id |name| email|
|0 |Jack | [email protected] |
|1 |James| [email protected]|
|2 |Alice| [email protected]|
|3 |Allen| [email protected]|
|4 |Amy | [email protected] |
It is a little different like this question ,because id=2 Alice's email is different.