-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: is_bool_dtype raises AttributeError when checking categorical Series #45616
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: is_bool_dtype raises AttributeError when checking categorical Series #45616
Conversation
Robbie-Palmer
commented
Jan 25, 2022
- closes BUG: is_bool_dtype 'Series' object has no attribute 'categories' #45615
- tests added / passed
- Ensure all linting tests pass, see here for how to run them
- whatsnew entry
Categories are taken from dtype.categories instead of trying to get them from series.categories
Could you merge master? |
doc/source/whatsnew/v1.4.1.rst
Outdated
@@ -24,7 +24,7 @@ Fixed regressions | |||
Bug fixes | |||
~~~~~~~~~ | |||
- Fixed segfault in :meth:``DataFrame.to_json`` when dumping tz-aware datetimes in Python 3.10 (:issue:`42130`) | |||
- | |||
- Bug in :meth:`api.types.is_bool_dtype` was raising an AttributeError when evaluating a categorical Series (:issue:`45615`) |
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.
normally we would use backticks around AttributeError and Series (as it highlites them). if you can update and ping on green.
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.
Any advice on how to handle the failing checks?
also pls merge master |
…e-support-categorical-series # Conflicts: # doc/source/whatsnew/v1.4.1.rst
thanks @Robbie-Palmer |
@meeseeksdev backport 1.4.x |
…r when checking categorical Series
Something went wrong ... Please have a look at my logs. |
…cking categorical Series (#45738) Co-authored-by: Robbie Palmer <[email protected]>
…ression section
…elease note from bugfix to regression section
…fix to regression section (#45882) Co-authored-by: Simon Hawkins <[email protected]>