What is the most efficient way to replace a value in a specified column based on a condition from another column?
Example: Replace value A with 20 where value B is 2
| A | B
1 | 10 | 1
2 | 30 | 2
3 | 10 | 2
Result:
| A | B
1 | 10 | 1
2 | 20 | 2
3 | 20 | 2
Thanks!