I have a dataframe where I want to replace all values of 999999 with another column value, while leaving all other values alone. Here is an example of what I have now:
Account | max val | Biology | Statistics |
---|---|---|---|
Bill | 100 | 999999 | 200 |
Frank | 150 | 150 | 999999 |
Wendy | 90 | 999999 | 100 |
Here is what I want the dataframe to look like:
Account | max val | Biology | Statistics |
---|---|---|---|
Bill | 100 | 100 | 200 |
Frank | 150 | 150 | 150 |
Wendy | 90 | 90 | 100 |
Is there an efficient way to accomplish this?
Thanks in advance.