Skip to content

Options API enhancements #2507

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
changhiskhan opened this issue Dec 12, 2012 · 4 comments
Closed

Options API enhancements #2507

changhiskhan opened this issue Dec 12, 2012 · 4 comments
Milestone

Comments

@changhiskhan
Copy link
Contributor

getitem/setitem magic:

pd.options['expand'] = True

context manager for temporary options setting:

with pd.set_option('expand', False):
    ...
@ghost
Copy link

ghost commented Dec 12, 2012

you're completely right about the context manager, will do.

Don't see the upside for doing item magic:

  • not more concise
  • no tooltip in ipython
  • doesn't have room for expressing reset/describe
  • too many ways to do the same thing

at least doing pd.options.print.max_cols would get you tab-completion
and express the hirerchy of keys in a natural way.

Unless it's really that annoying for everyone, I suggest leaving as is.

@ghost ghost self-assigned this Dec 12, 2012
@changhiskhan
Copy link
Contributor Author

fair point, was thinking people might be more familiar with dict-like access to options, but i think it's fine to leave as is.

no urgency on the context manager either, just jotting down my thoughts

@wesm
Copy link
Member

wesm commented Dec 12, 2012

IPython tab completion magic would be very nice e g.

options.print.line_width = 120

@ghost
Copy link

ghost commented Dec 14, 2012

done and done via cc2a22a

@ghost ghost closed this as completed Dec 14, 2012
@wesm wesm unassigned ghost Oct 12, 2016
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants