-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
Set pd.options.display.max_rows = 20 by default #20514
Conversation
can you add a whatsnew section about this |
Codecov Report
@@ Coverage Diff @@
## master #20514 +/- ##
==========================================
+ Coverage 91.81% 91.84% +0.02%
==========================================
Files 152 152
Lines 49261 49259 -2
==========================================
+ Hits 45231 45241 +10
+ Misses 4030 4018 -12
Continue to review full report at Codecov.
|
Done. |
See the mail I sent about this on the mailing list: https://mail.python.org/pipermail/pandas-dev/2018-March/000732.html |
Did you get any replies? I like the idea of two thresholds, but the main idea behind reducing the number of displayed rows is to avoid having to scroll. R (tibble) sets these thresholds to 20 (show all rows up to) and 10 (truncated repr), which always result in reprs that fit within the typical terminal height. However, RStudio has a |
Sorry for the late reply. I understand the reason of wanting to fit the output on the screen, but the balance with being able to actually see data is a difficult one. Would you be interested in implementing the "two thresholds" approach? |
I agree that there is no one size fits all solution. I'm not sure the two thresholds approach is a real improvement over the current situation. I think all of these settings related to personal preferences would be solved if Pandas had a configuration file that is read during import, so I'd rather help in getting #4907 done. |
@jorisvandenbossche what is the status of this? |
Based on @jorisvandenbossche comments I understand we're not merging this PR, and we'll have a more complex solution. Closing, feel free to reopen if this is not the case. |
As a follow-up to #17023, I propose to change the default number of displayed rows to 20.
git diff upstream/master -u -- "*.py" | flake8 --diff