laywerrobot/lib/python3.6/site-packages/pandas/computation/expressions.py
2020-08-27 21:55:39 +02:00

15 lines
545 B
Python

import warnings
def set_use_numexpr(v=True):
"""
.. deprecated:: 0.20.0
Use ``pandas.set_option('compute.use_numexpr', v)`` instead.
"""
warnings.warn("pandas.computation.expressions.set_use_numexpr is "
"deprecated and will be removed in a future version.\n"
"you can toggle usage of numexpr via "
"pandas.get_option('compute.use_numexpr')",
FutureWarning, stacklevel=2)
from pandas import set_option
set_option('compute.use_numexpr', v)