Thresholds are not correct when there's less values in labels vs the ones in the thresholds, leading to trying to create an interval with [1,0] for example which should be [0, 1] which would raise an exception inside pandas.
Added a test.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Description of changes:
Thresholds are not correct when there's less values in labels vs the ones in the thresholds, leading to trying to create an interval with [1,0] for example which should be [0, 1] which would raise an exception inside pandas.
Added a test.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.