Skip to content

ENH: repr now shows index name #6482 #9897

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
wants to merge 1 commit into from

Conversation

hsperr
Copy link
Contributor

@hsperr hsperr commented Apr 14, 2015

Let me know if that is not good enough, I played around with indenting it but it doesn't look good with big indexes.

This, current:
screen shot 2015-04-14 at 11 06 30 am
vs with indention
screen shot 2015-04-14 at 11 07 18 am


name_attr=''
if self.name:
name_attr = u(" %s=%s,") % ('name', self.name)
Copy link
Member

Choose a reason for hiding this comment

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

the format spec should be

u(" %s=%r,")

so that the quotes show up in the string

@cpcloud cpcloud added this to the 0.16.1 milestone Apr 14, 2015
@cpcloud cpcloud added Enhancement Output-Formatting __repr__ of pandas objects, to_string labels Apr 14, 2015
@jreback
Copy link
Contributor

jreback commented Apr 14, 2015

closing in favor of #9901

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

Successfully merging this pull request may close these issues.

3 participants