I have two data frame lets say:
dataframe A with column 'name'
    name
0   4
1   2
2   1
3   3
Another dataframe B with two columns i.e. name and value
  name  value
0   3     5
1   2     6
2   4     7
3   1     8
I want to rearrange the value in dataframe B according to the name column in dataframe A
I am expecting final dataframe similar to this:
  name   value
0   4      7
1   2      6
2   1      8
3   3      5
 
    