I am Looking for a way to assign Elements from one dataframe to another by replacing them.

```
df1 = DataFrame({"R1": [1,2,3], "R2": [4,5,6], "R3": [7,8,9]})
df2 = DataFrame({"R1": [12,17,22], "R2": [50,55,61], "R3": [750,800,850]})

```

replace\_value(x):

> 
> *example1:*
> 
> 
> replace\_value(5) = 55
> 
> 
> *example2:*
> 
> 
> replace\_value(9) = 850
> 
> 
>