JenksNaturalBreaks(1) fails
pulquero opened this issue · comments
pulquero commented
group() doesn't handle the edge case of n_classes=1 as inner_breaks_ is empty:
groups_ = [arr[arr <= self.inner_breaks_[0]]]
Matthieu Viry commented
Thanks for reporting it.
I will fix it soon (probably tomorrow, but don't hesitate if you prefer to submit a pull request yourself in the meantime).
Matthieu Viry commented
This has been fixed in 85c80e3.