Skip to content
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

COMPAT: pandas 0.21.0 #2736

Closed
TomAugspurger opened this issue Oct 3, 2017 · 2 comments · Fixed by #2737
Closed

COMPAT: pandas 0.21.0 #2736

TomAugspurger opened this issue Oct 3, 2017 · 2 comments · Fixed by #2737

Comments

@TomAugspurger
Copy link
Member

TomAugspurger commented Oct 3, 2017

In pandas-dev/pandas#17710 pandas delays the import of various libraries. An upshot of this is that pandas.core.computation/__init__.py doesn't import pandas.core.computation.expression, so the code in

if PANDAS_VERSION >= '0.20.0':
from pandas.util import cache_readonly
pd.core.computation.expressions.set_use_numexpr(False)
else:
from pandas.util.decorators import cache_readonly
pd.computation.expressions.set_use_numexpr(False)
fails.

The recommended way to set that value is pd.set_option("compute.use_numexpr", True).

Does anyone know what that's being set in the first place? I'll look around the history.

@mrocklin
Copy link
Member

mrocklin commented Oct 3, 2017

My guess is that we wanted to avoid oversubscribing threads.

@TomAugspurger
Copy link
Member Author

Seems to go back to #502 (cachey)

@TomAugspurger TomAugspurger changed the title COMPAT: pandas 0.21.0 and numexpr setting COMPAT: pandas 0.21.0 Oct 4, 2017
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

Successfully merging a pull request may close this issue.

2 participants