Skip to content

Issue36124 display of int enums #36820

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

Closed

Conversation

dzimmanck
Copy link

@dzimmanck dzimmanck commented Oct 2, 2020

…onvert IntEnums to ints. This is controlled with a new argument called 'convert_intenum' which defaults to False.
@dzimmanck
Copy link
Author

I am getting 1 failure in CI testing with an assertion unrelated to my commit. Seems similar the issue discovered here:

#36134

Should I follow the same backport instructions?

@github-actions
Copy link
Contributor

github-actions bot commented Nov 6, 2020

This pull request is stale because it has been open for thirty days with no activity. Please update or respond to this comment if you're still interested in working on this.

@github-actions github-actions bot added the Stale label Nov 6, 2020
@arw2019
Copy link
Member

arw2019 commented Nov 8, 2020

@dzimmanck can you merge master to see if there are still CI failures

@dzimmanck
Copy link
Author

dzimmanck commented Nov 8, 2020 via email

@dzimmanck
Copy link
Author

OK, everything looking good now.

Copy link
Member

@arw2019 arw2019 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @dzimmanck for following up! lgtm

Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry @dzimmanck got lost in the shuffle. if you can address comments.

@@ -2217,6 +2218,9 @@ def maybe_convert_objects(ndarray[object] objects, bint try_float=False,
seen.object_ = True
break
elif util.is_integer_object(val):
if getattr(val, 'name', None) is not None and not convert_intenum:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i am not sure why you need this extra argument at all? the getattr (or a hasattr check) would prob be ok

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in fact it could be in the elif itself

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jreback, I will take a look at this when I get a chance later this week.

@jreback jreback added Output-Formatting __repr__ of pandas objects, to_string and removed Needs Review labels Jan 9, 2021
@jreback
Copy link
Contributor

jreback commented Feb 11, 2021

@dzimmanck if you can respond to the comments

@dzimmanck
Copy link
Author

dzimmanck commented Feb 12, 2021 via email

@mroeschke
Copy link
Member

Thanks for the PR but it appears this PR has gotten stale. Let us know if you can merge master and address the comments and we'd be happy to reopen. Closing

@mroeschke mroeschke closed this Apr 11, 2021
@PGomezGonzalo
Copy link

Hi! I am having the same bug. Is there any chance this will be picked up again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Output-Formatting __repr__ of pandas objects, to_string
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ENH: Display IntEnums by name rather then value
7 participants