Skip to content

ENH: options for controlling features #14219

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
jreback opened this issue Sep 14, 2016 · 4 comments
Closed

ENH: options for controlling features #14219

jreback opened this issue Sep 14, 2016 · 4 comments
Labels
Compat pandas objects compatability with Numpy or Python functions Enhancement

Comments

@jreback
Copy link
Contributor

jreback commented Sep 14, 2016

Various feature changes in the future might be invasive to the long-term support (LTS) concept. IOW, having a deprecation warning for Panel. So allow an option to control this.

something like:

options.features.panel = 'warn' | 'raise' | 'ignore'
options.features.ix = 'warn' | 'raise' | 'ignore'

These would default to warn, but can then be user settable. Normally don't like changes to global state, but if you are using a 'deprecated' feature, easiest to silence things like this.

@jreback jreback added Enhancement Compat pandas objects compatability with Numpy or Python functions labels Sep 14, 2016
@jreback jreback added this to the 0.20.0 milestone Sep 14, 2016
@jreback
Copy link
Contributor Author

jreback commented Sep 14, 2016

@shoyer
Copy link
Member

shoyer commented Sep 14, 2016

Sure, this seems fine to me, though showing examples of how to do this with warnings.filterwarnings might be enough, e.g., warnings.filterwarnings('ignore', 'panel', FutureWarning).

@jreback jreback modified the milestones: 0.20.0, Next Major Release Mar 23, 2017
@jbrockmendel
Copy link
Member

Closeable? The motivating cases in the OP have been handled and I haven't heard any clamor for this type of switch.

@TomAugspurger
Copy link
Contributor

We may want something like this to let people opt into NA integer / string dtype by default. But we can reopen at that time if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compat pandas objects compatability with Numpy or Python functions Enhancement
Projects
None yet
Development

No branches or pull requests

4 participants