I have a set of numbers that I would like to change to a string based on if the number is within a given range.
Given df (these are int, not strings):
tempList
10
98
33
65
254
Ranges:
<40 = "Cold Temp"
41-80 = "Good Temp"
>81 = "Hot Temp"
Desired Output:
tempList
Cold Temp
Hot Temp
Cold Temp
Good Temp
Hot Temp