I have a column of ages that I need to convert into certain string values, depending on the value in each row.
For example: If a row in ‘age’ column has a value between 20 and 29 I need it to replace the value with “Twenties”, If a row in ‘age’ column has a value between 30 and 39 I need it to replace the value with “Thirties” … and so on.
This can be done by replacing the values, or inserting strings in another column, doesn’t matter to me, I just need a way to iterate thru each row and insert / replace the value in corresponding rows.