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: index attributes don't respect the width & need wrapping #11552

Open
jreback opened this issue Nov 8, 2015 · 0 comments
Open

BUG: index attributes don't respect the width & need wrapping #11552

jreback opened this issue Nov 8, 2015 · 0 comments
Labels
Bug Output-Formatting __repr__ of pandas objects, to_string

Comments

@jreback
Copy link
Contributor

jreback commented Nov 8, 2015

I could get this only to show up in the notebook, but the idea is that the attributes (e.g. _format_attrs())
should be wrapped like we do data so that they don't get cut off.

In [14]: pd.options.display.width=20

In [15]: pd.CategoricalIndex(['foo','bar','baz','a really long string']*100,name='a long name')
Out[15]: 
CategoricalIndex([u'foo',
                  u'bar',
                  u'baz',
                  u'a really long string',
                  u'foo',
                  u'bar',
                  u'baz',
                  u'a really long string',
                  u'foo',
                  u'bar',
                  ...
                  u'baz',
                  u'a really long string',
                  u'foo',
                  u'bar',
                  u'baz',
                  u'a really long string',
                  u'foo',
                  u'bar',
                  u'baz',
                  u'a really long string'],
                 categories=[u'a really long string', u'bar', u'baz', u'foo'], ordered=False, name=u'a long name', dtype='category', length=400)
@jreback jreback added Bug Output-Formatting __repr__ of pandas objects, to_string labels Nov 8, 2015
@jreback jreback added this to the Next Major Release milestone Nov 8, 2015
@mroeschke mroeschke removed this from the Contributions Welcome milestone Oct 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Output-Formatting __repr__ of pandas objects, to_string
Projects
None yet
Development

No branches or pull requests

2 participants