Question:
I want to update the values from a column in a dataframe with the values from the same column but from a different row.I tried the following code:
Answer:
The issue is that you consider the replacement value as a vector while it is a scalar. (If it was really a vector you would need to define how to map the values)You can use:
If you have better answer, please add a comment about this, thank you!