Skip to content
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
Copy link
Contributor

robbie added 3 commits January 25, 2022 12:34
Categories are taken from dtype.categories instead of trying to get them from series.categories
@phofl
Copy link
Member

phofl commented Jan 30, 2022

Could you merge master?

@mroeschke mroeschke added the Bug label Jan 30, 2022
@mroeschke mroeschke added this to the 1.4.1 milestone Jan 30, 2022
@@ -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`)
Copy link
Contributor

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.

Copy link
Contributor Author

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?

@jreback
Copy link
Contributor

jreback commented Jan 30, 2022

also pls merge master

…e-support-categorical-series

# Conflicts:
#	doc/source/whatsnew/v1.4.1.rst
@jreback jreback merged commit b7366ee into pandas-dev:main Jan 31, 2022
@jreback
Copy link
Contributor

jreback commented Jan 31, 2022

thanks @Robbie-Palmer

@jreback
Copy link
Contributor

jreback commented Jan 31, 2022

@meeseeksdev backport 1.4.x

meeseeksmachine pushed a commit to meeseeksmachine/pandas that referenced this pull request Jan 31, 2022
@lumberbot-app
Copy link

lumberbot-app bot commented Jan 31, 2022

Something went wrong ... Please have a look at my logs.

@Robbie-Palmer Robbie-Palmer deleted the 45615-is-bool-dtyppe-support-categorical-series branch January 31, 2022 14:21
jreback pushed a commit that referenced this pull request Jan 31, 2022
…cking categorical Series (#45738)

Co-authored-by: Robbie Palmer <8760191+Robbie-Palmer@users.noreply.github.com>
simonjayhawkins added a commit to simonjayhawkins/pandas that referenced this pull request Feb 8, 2022
@simonjayhawkins simonjayhawkins added Regression Functionality that used to work in a prior pandas version Dtype Conversions Unexpected or buggy dtype conversions labels Feb 8, 2022
meeseeksmachine pushed a commit to meeseeksmachine/pandas that referenced this pull request Feb 8, 2022
…elease note from bugfix to regression section
simonjayhawkins added a commit that referenced this pull request Feb 8, 2022
…fix to regression section (#45882)

Co-authored-by: Simon Hawkins <simonjayhawkins@gmail.com>
phofl pushed a commit to phofl/pandas that referenced this pull request Feb 14, 2022
phofl pushed a commit to phofl/pandas that referenced this pull request Feb 14, 2022
yehoshuadimarsky pushed a commit to yehoshuadimarsky/pandas that referenced this pull request Jul 13, 2022
yehoshuadimarsky pushed a commit to yehoshuadimarsky/pandas that referenced this pull request Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Dtype Conversions Unexpected or buggy dtype conversions Regression Functionality that used to work in a prior pandas version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: is_bool_dtype 'Series' object has no attribute 'categories'
6 participants