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
hmm this is a bug, not sure exactly, but I think something is getting created in an odd way.
jreback
changed the title
After reindex(), astype() raises exception for categorical series
BUG: After reindex(), astype() raises exception for categorical series
Sep 6, 2017
I'm looking into it, and it seems that the bug is due to its CategoricalBlock step having ndim evaluating to 2, whereas its values.ndim evaluate to 1. I think it has to do with how a Block object has an ndim of 2 by default.
Maybe we aren't sending the ndim parameter and we should, or is this supposed to be correct?
Hi
I meet an unexpected behavior for categorical series
After reindex() a categorical series, astype() will raise Exception
For example, code below raise ValueError: Wrong number of dimensions
However, if I reindex() first then set the series categorical, astype() works as expected.
Code below works fine
I think both code should behave the same way
The text was updated successfully, but these errors were encountered: