-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
BUG: CategoricalIndex can't be a boolen mask #22665
Labels
Categorical
Categorical Data Type
Dtype Conversions
Unexpected or buggy dtype conversions
Indexing
Related to indexing on series/frames, not to indexes themselves
Milestone
Comments
TomAugspurger
added
Indexing
Related to indexing on series/frames, not to indexes themselves
Dtype Conversions
Unexpected or buggy dtype conversions
labels
Sep 11, 2018
TomAugspurger
added a commit
to TomAugspurger/pandas
that referenced
this issue
Sep 11, 2018
TomAugspurger
added a commit
to TomAugspurger/pandas
that referenced
this issue
Sep 11, 2018
TomAugspurger
added a commit
to TomAugspurger/pandas
that referenced
this issue
Sep 11, 2018
TomAugspurger
added a commit
to TomAugspurger/pandas
that referenced
this issue
Sep 11, 2018
TomAugspurger
added a commit
to TomAugspurger/pandas
that referenced
this issue
Sep 11, 2018
Is this another manifestation of this bug, or a separate bug? >>> import pandas as pd
>>> pd.__version__
'0.23.3'
>>> pd.CategoricalIndex(categories=[True, False])
ValueError Traceback (most recent call last)
...
~/.virtualenvs/pandas/lib/python3.7/site-packages/pandas/core/arrays/categorical.py in _get_codes_for_values(values, categories)
2431 (_, _), cats = _get_data_algo(categories, _hashtables)
2432 t = hash_klass(len(cats))
-> 2433 t.map_locations(cats)
2434 return coerce_indexer_dtype(t.lookup(vals), cats)
2435
pandas/_libs/hashtable_class_helper.pxi in pandas._libs.hashtable.PyObjectHashTable.map_locations()
ValueError: Buffer dtype mismatch, expected 'Python object' but got 'unsigned long' Full traceback under details tag:
I'll note that my version of it is a regression that occurred between 0.18.0 and 0.23.0. |
Hmm that looks different. Two things
|
TomAugspurger
added a commit
that referenced
this issue
Sep 20, 2018
Sup3rGeo
pushed a commit
to Sup3rGeo/pandas
that referenced
this issue
Oct 1, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Categorical
Categorical Data Type
Dtype Conversions
Unexpected or buggy dtype conversions
Indexing
Related to indexing on series/frames, not to indexes themselves
Expected:
Fix coming shortly.
The text was updated successfully, but these errors were encountered: