Skip to content

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
Contributor

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
Contributor

@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.

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