mthh / jenkspy

Compute Natural Breaks in Python (Fisher-Jenks algorithm)

Home Page:https://pypi.python.org/pypi/jenkspy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JenksNaturalBreaks(1) fails

pulquero opened this issue · comments

group() doesn't handle the edge case of n_classes=1 as inner_breaks_ is empty:
groups_ = [arr[arr <= self.inner_breaks_[0]]]

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).

This has been fixed in 85c80e3.