You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I summon a hist from a Pandas column (Series) containing integers I get a proper histogram where the x axis is divided to bins of value ranges.
When I do the same using a handy DataFrame I get a categorical histogram.
I dug into the code and the reason for the way handy acts is that the column of integers is not defined as a member of the self._continuous group of columns.
hist uses the continuous list as an indication of using categorical for non continuous. This is why a hist of integers in handy is not what one would expect from a hist of integers in Pandas.
a workaround is to cast the integer column to floats. I think this is a bug (couldn't find anything in the docs).
When I summon a hist from a Pandas column (Series) containing integers I get a proper histogram where the x axis is divided to bins of value ranges.
When I do the same using a handy DataFrame I get a categorical histogram.
I dug into the code and the reason for the way handy acts is that the column of integers is not defined as a member of the self._continuous group of columns.
hist uses the continuous list as an indication of using categorical for non continuous. This is why a hist of integers in handy is not what one would expect from a hist of integers in Pandas.
a workaround is to cast the integer column to floats. I think this is a bug (couldn't find anything in the docs).
Here's a quick repro code..
I forgot to congratulate you on this great lib, it really is cool!
Itamar
The text was updated successfully, but these errors were encountered: