I have two dataframes with equal number of rows.
df_a:
index Id X Y
1 10 x1 -
2 20 x2 -
-----------
df_b:
index PostId Text
3 10 abcd
4 20 efg
Now how can I transform values of df_b['Text']
to df_a['Y']
. resulting this:
df_a:
index Id X Y
1 10 x1 abcd
2 20 x2 efg
Note that indexes of mentioned dataframes are not the same.