I have two dataframe df1
and df2
for example:
df1:
Account Type
0 a Green
1 a Red
2 a Gala
3 a orange
df2:
Account Type
0 a Green apple
1 a Red apple
2 a Gala apple
What I need to do is to create a column in df1
called Type_2 where I will find the corresponded name for each type in df1 found in df2
. In short, scan the whole array and get the result.
Account Type Type_2
0 a Green Green apple
1 a Red Red apple
2 a Gala Gala apple
3 a orange Null
I am trying to learn, hope you can help me