I want to go though a column in a pd dataframe and replace all the corresponding values with the appropriate values.
values range from 1-46 in column A.
x=0
y=1000
1=0
2=1
3-22=x+50
23-46=y+100
Input:
Column A
1
2
3
4
23
24
Expected Output:
0
1
50
100
1100
1200