I have two data frames:
df1 as follows:
  col0 col1  col1.1  col3
0    a    d       1     6
1    b    e       5     7
And df2 as follows:
  colx  coly
0    a    10
1    b    20
2    d    50
3    e    40
How do I combine the dataframes in-place such that the final df looks like this?
  col0 col1  col1.1  col3  colx coly
0    a    d       1     6   10   50
1    b    e       5     7   20   40
As far as I understand, the merge method in pandas merges both dataframes based on a given axis. In this case, I want to merge them based on the value in another dataframe. What is the function I am looking for in this case?
 
     
     
     
     
    