File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed
Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change 4848 notna ,
4949)
5050
51+
52+ from pandas .core .util .numba_ import GLOBAL_USE_NUMBA
5153from pandas .core import nanops_numba
5254
5355if TYPE_CHECKING :
@@ -68,18 +70,6 @@ def set_use_bottleneck(v: bool = True) -> None:
6870set_use_bottleneck (get_option ("compute.use_bottleneck" ))
6971
7072
71- _USE_NUMBA = True
72-
73-
74- def set_use_numba (v : bool = True ) -> None :
75- # set/unset to use bottleneck
76- global _USE_NUMBA
77- _USE_NUMBA = v
78-
79-
80- # set_use_numba(get_option("compute.use_numba"))
81-
82-
8373class disallow :
8474 def __init__ (self , * dtypes : Dtype ) -> None :
8575 super ().__init__ ()
@@ -133,7 +123,7 @@ def f(
133123 ** kwds ,
134124 ):
135125 disallowed = values .dtype == "O"
136- if _USE_NUMBA and not disallowed :
126+ if GLOBAL_USE_NUMBA and not disallowed :
137127 result = nb_func (values , skipna = skipna , axis = axis , ** kwds )
138128 else :
139129 result = alt (values , axis = axis , skipna = skipna , ** kwds )
You can’t perform that action at this time.
0 commit comments