In a data frame, when the value of a given column is below 10, I need to change all the values till the end of the column to 5.
so let's say these are the values of the column:
| A |
|---|
| 134 |
| 413 |
| 12 |
| 81 |
| 9 |
| 483 |
| 93 |
| 30 |
I would need it to become:
| A |
|---|
| 134 |
| 413 |
| 12 |
| 81 |
| 5 |
| 5 |
| 5 |
| 5 |
I apologize if I didn't explain this well, I'm new to coding. Thanks for all the help!