I've went through multiple excamples of data classification however either I didn't get it or those are not applicable in my case.
I have a list of values:
values = [-130,-110,-90,-80,-60,-40]
All I need to do is to classify input
integer value to appropriate "bin".
E.g., input=-97
should get index 1
(between -110, to -90) , while input=-140
should get 0.
I don't want to do it if...elif else style
since values could be dynamic.
What would be the most pythonic way to do it? I guess no pandas/numpy is necessary
Regards