-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ENH: option to change the number in _dir_additions_for_owner
#44335
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
ENH: option to change the number in _dir_additions_for_owner
#44335
Conversation
__max_dir_additions
_dir_additions_for_owner
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 we not just using max_columns for this?
If you have a dataframe with 10 000 columns you will not want to have them all pretty printed, but you may still want to have all columns suggested by tab completion. (edit: so you need to be able to set them to a different value) |
really? you are going to scroll thru them? i don't really like adding yet another option if people really want to scroll then just increase the default |
No you do not scroll thru them. Instead you type the first two (or so) letters and press the tab button. The editor will then suggest names for columns that start with those letters. This is called tab completion. Except that, currently, it will not suggest names of columns that are beyond the first 100 columns since these are not known to For instance, if you grab a jupyter notebook and take some random data
then |
i c ok then need tests |
This comment has been minimized.
This comment has been minimized.
cc @pandas-dev/pandas-core and @arw2019 if any comments here. |
thanks @TheDerivator |
dir
, which is frequently also the number of columns suggested by tab completion, by using the optionpandas.set_option('display.max_dir_additions', 100)
to a higher number than 100 or None for an unlimited number of columns. Changing the value ofdisplay.max_dir_additions
will only take effect for existing dataframes after a column is added or deleted, as the result ofdir
is cached.