I am having a data frame as below:
I need to create a new column, with the name Value-2: if the value-1 is less than 500, you need to fill the value with 0.5. if the value is less than 1000, you need to fill the value with 1.
Expected Result:
Can someone help me?