-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DEPR: allow options for using bottleneck/numexpr #16157
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #16157 +/- ##
==========================================
+ Coverage 90.85% 90.87% +0.01%
==========================================
Files 159 162 +3
Lines 50783 50816 +33
==========================================
+ Hits 46141 46178 +37
+ Misses 4642 4638 -4
Continue to review full report at Codecov.
|
pandas/core/config_init.py
Outdated
|
||
use_bottleneck_doc = """ | ||
: bool | ||
Use the bottleneck library to accelearte if its installed, default is True |
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.
accelerate
deprecate pd.computation.expressions.set_use_numexpr()
cc @jorisvandenbossche |
LGTM |
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.
Can you add a whatsnew notice for the two new options?
doc/source/options.rst
Outdated
@@ -425,6 +425,10 @@ mode.use_inf_as_null False True means treat None, NaN, -IN | |||
INF as null (old way), False means | |||
None and NaN are null, but INF, -INF | |||
are not null (new way). | |||
compute.use_bottleneck True Use the bottleneck library to accelerate | |||
computation if its installed |
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.
its -> it is
doc/source/options.rst
Outdated
compute.use_bottleneck True Use the bottleneck library to accelerate | ||
computation if its installed | ||
compute.use_numexpr True Use the numexpr library to accelerate | ||
computation if its installed |
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.
same here
pandas/core/config_init.py
Outdated
|
||
use_bottleneck_doc = """ | ||
: bool | ||
Use the bottleneck library to accelearte if its installed, default is True |
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.
same here and below about 'its'
# set/unset to use bottleneck | ||
global _USE_BOTTLENECK | ||
if _BOTTLENECK_INSTALLED: | ||
_USE_BOTTLENECK = v |
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.
Should we warn here if v
is False and bottleneck is not installed ?
|
@@ -35,6 +36,9 @@ def set_use_numexpr(v=True): | |||
global _USE_NUMEXPR | |||
if _NUMEXPR_INSTALLED: | |||
_USE_NUMEXPR = v | |||
elif v: | |||
warnings.warn("trying to set the option to use numexpr, " | |||
"but it is not installed!") |
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.
I know I suggested this, but, I think this one will be triggered by default if you don't have numexpr installed? (just by importing pandas, I mean, not only when setting the option manually when you don't have it installed)
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.
yep, just noticed that. going to take this out.
* DEPR: allow options for using bottleneck/numexpr deprecate pd.computation.expressions.set_use_numexpr() * DEPR: pandas.types.concat.union_categoricals in favor of pandas.api.type.union_categoricals closes pandas-dev#16140
Removes the following: * pandas.types * pandas.computation * pandas.util.decorators xref pandas-devgh-16157. xref pandas-devgh-16250.
Removes the following: * pandas.types * pandas.computation * pandas.util.decorators xref pandas-devgh-16157. xref pandas-devgh-16250.
Removes the following: * pandas.types * pandas.computation * pandas.util.decorators xref pandas-devgh-16157. xref pandas-devgh-16250.
Removes the following: * pandas.types * pandas.computation * pandas.util.decorators xref pandas-devgh-16157. xref pandas-devgh-16250.
Removes the following: * pandas.types * pandas.computation * pandas.util.decorators xref pandas-devgh-16157. xref pandas-devgh-16250.
deprecate pd.computation.expressions.set_use_numexpr()
supersedes #16140