I have two dataframes
df_a
|id |name| email|
|0 | Jack | jack@gmail.com|
|1 | James | james@gmail.com|
|2 | Alice | alice@gmail.com|
df_b
|id |name| email|
|2 | Alice | alice@live.com |
|3 | Allen | allen@gmail.com |
|4 | Amy | amy@gmail.com |
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 | jack@gmail.com |
|1 |James| james@gmail.com|
|2 |Alice| alice@gmail.com|
|3 |Allen| allen@gmail.com|
|4 |Amy | amy@gmail.com |
It is a little different like this question ,because id=2 Alice's email is different.