-
-
Notifications
You must be signed in to change notification settings - Fork 33
Categoricals #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Categoricals #7
Conversation
huzzah! |
categories = [b.categories if isinstance(b, pd.Categorical) else None | ||
for b in blocks] | ||
blocks = [b.codes if isinstance(b, pd.Categorical) else b | ||
for b in blocks] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Categoricals can also be ordered (Boolean default False)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved. FYI I ran into an issue that assert_frame_equal did not pick up on the ordered difference between two Categorical objects.
In [1]: import pandas as pd
In [2]: pd.util.testing.assert_frame_equal(pd.DataFrame({'x': pd.Categorical([], ordered=True)}), pd.DataFrame({'x': pd.Categorical([], ordered=False)}))
In [3]:
Are you planning on a new release soon to pull in this change or should I install the master branch? |
I would like to issue a general dask release sometime late next week. On Thu, May 5, 2016 at 2:50 PM, Luke Miner notifications@github.com wrote:
|
Not important. Just checking. Thanks a bunch! |
Released |
cc @lminer @jreback