Skip to content

Petition to set default value of pd.options.display.max_columns to something more reasonable #16800

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
adamwlev opened this issue Jun 29, 2017 · 2 comments

Comments

@adamwlev
Copy link

Hi, I would like to voice my frustration with the fact that the default setting for the maximum amount of columns to display of a DataFrame is 20. I think I understand the need to have this setting - to protect against printing an unreasonable amount of information on the screen in the case of a DataFrame having an extremely large amount of columns. However, I have now googled 'pandas set options max columns' about 100 times and even if I could bring myself to memorize this nested attribute location ('pd.options.display.max_columns'), it is still tiresome to have to write it every time after 'import pandas as pd'.

I am sure there are many people who agree with me on this one. Is there anyway to have a poll amongst users (does github have this functionality? through twitter maybe?) for what this default value should be? I would vote for 100 personally.

Thanks,
Adam Levin

@chris-b1
Copy link
Contributor

Are you using ipython (either terminal or notebook)? I put these kind of things in a startup script. There also was some discussion a few years ago about a "pandasrc" #4907

@adamwlev
Copy link
Author

Ok, @chris-b1 that makes a lot of sense. I just set up my config file ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants