I have a datarframe
dt id ... timestamp prediction
0 2021-04-12 03:17:25+00:00 gu7thj8 ... 2021-04-12 0.386086
1 2021-04-12 03:17:26+00:00 gu7thjl ... 2021-04-12 0.708179
2 2021-04-12 03:17:28+00:00 gu7thoz ... 2021-04-12 0.410866
5 2021-04-12 14:22:04+00:00 gu99dqg ... 2021-04-12 0.416667
if the number between 0 and 0.40 return -1 if the number between 0.40 and 0.60 return 0 if the number between 0.60 and 1 return 1 and I want to create an extra column that would give an output with -1,0,1