-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: Fix categorical formatter not folding the output when it exceeds display width #17639
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
Conversation
""" | ||
Return the formatted data as a unicode string | ||
""" | ||
from pandas.io.formats.console import get_console_size |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are you copying this here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because i didn't think up a good idea to reuse Index#_format_data() in base.py. (and the output is slightly different.)
any idea?
Codecov Report
@@ Coverage Diff @@
## master #17639 +/- ##
==========================================
- Coverage 91.22% 91.19% -0.03%
==========================================
Files 163 163
Lines 49655 49710 +55
==========================================
+ Hits 45297 45334 +37
- Misses 4358 4376 +18
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #17639 +/- ##
==========================================
- Coverage 91.22% 91.19% -0.03%
==========================================
Files 163 163
Lines 49655 49710 +55
==========================================
+ Hits 45297 45334 +37
- Misses 4358 4376 +18
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #17639 +/- ##
==========================================
- Coverage 91.22% 91.19% -0.03%
==========================================
Files 163 163
Lines 49655 49710 +55
==========================================
+ Hits 45297 45334 +37
- Misses 4358 4376 +18
Continue to review full report at Codecov.
|
can you rebase / update (and move whatsnew to 0.22.0) |
closing as stale. if you want to re-visit this, pls ping. |
git diff upstream/master -u -- "*.py" | flake8 --diff
Let me know if further refactoring is required.