-
-
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
max_rows seems to have max value of 60 #3541
Comments
There are two limits that apply |
@hayd do u want max_rows to override height? |
The display logic has bells and it has whistles and admittedly it's not very simple anymore. Basically, max_rows determines whether we need to somehow reformat the output I understand it's not as intuitive as it one might hope, but aside from better docs, I don't think marked as usage+docs, and we should add something to the documentation explaining this. |
@cpcloud I think there is a case for that, but provided it is clear in the docs (i.e. is mentioned explicitly in the max_rows part of the set_options docstring) I can live with it. :) |
http://stackoverflow.com/questions/16652651/pandas-df-head-error I think it should overwrite the display.height... |
maybe there should be a UserWarning saying if max_rows is less than display_height? |
pushed 88d892a, can we close this? |
@y-p thanks for putting these together, the SO OP said he't test in the morning and seemed happy :) I'm still a but sulky from the example at the top of this thread, but happy to close this is everyone else is ok with it. |
Oh no! a sulky pandas user. You have a fair point. There are now two options controlling roughly |
Sorry! ...I am concerned about the kittens, honest. |
If #3663 sees gets enough testing, I'll merge it for 0.11.1. |
Hi guys, I'm the SO user from the above post. I believe I tested y-p's update correctly, I did so by forking y-p's pandas repo and then physically overwriting the appropriate files with his commits, but it has not solved my problem. I can link my IPython notebook if it helps. Please let me know I did not test out the fix correctly. Thanks for looking into the issue for me! |
You shouldn't need to manually overwrite the files.
then, in ipnb, try running:
you should see HTML output, probbaly wider then the browser window. IIUC, that's what you were after. If you want to roll back, reinstall pandas in whatever way you prefer.
|
Hi y-p, Thank you for the walk-through on getting the pull request. I ran into a hitch though: I tried your steps several times but ran into this error when running the final code in an ipnb. Code:
Error:
I also received this error while running setup.py :
At any rate, I was not able to verify the html output. Any tips on how I might successfully test your fix? Thanks for your help and your time. |
Oh, you're on windows. that does complicate matters, It can be tricky to setup a At least one other user besides me reported that the fix work, I plan to merge it for 0.11.1 As an interim solution, I think you can work around the problem by setting |
Thanks y-p. I'll try playing with |
Merged in #3663 so closing this. thanks guys |
Max_rows seems to have a maximum value of 60 (in 0.11 and dev, this works as expected in 0.10.1):
Essentially from http://stackoverflow.com/questions/16424493/pandas-setting-no-of-max-rows.
Related: #3395, #3426.
The text was updated successfully, but these errors were encountered: