I have a pandas dataframe that contain score such as
score |
---|
0.1 |
0.15 |
0.2 |
0.3 |
0.35 |
0.4 |
0.5 |
etc
I want to group these value into the gorups of 0.2 so if score is between 0.1 or 0.2 the value for this row in sore will be 0.2 if score is between 0.2 and 0.4 then the value for score will be 0.4
so for example if max score is 1, I will have 5 buckets of score, 0.2 0.4 0.6 0.8 1
desired output:
score |
---|
0.2 |
0.2 |
0.2 |
0.4 |
0.4 |
0.4 |
0.6 |