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 48
48
notna ,
49
49
)
50
50
51
+
52
+ from pandas .core .util .numba_ import GLOBAL_USE_NUMBA
51
53
from pandas .core import nanops_numba
52
54
53
55
if TYPE_CHECKING :
@@ -68,18 +70,6 @@ def set_use_bottleneck(v: bool = True) -> None:
68
70
set_use_bottleneck (get_option ("compute.use_bottleneck" ))
69
71
70
72
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
-
83
73
class disallow :
84
74
def __init__ (self , * dtypes : Dtype ) -> None :
85
75
super ().__init__ ()
@@ -133,7 +123,7 @@ def f(
133
123
** kwds ,
134
124
):
135
125
disallowed = values .dtype == "O"
136
- if _USE_NUMBA and not disallowed :
126
+ if GLOBAL_USE_NUMBA and not disallowed :
137
127
result = nb_func (values , skipna = skipna , axis = axis , ** kwds )
138
128
else :
139
129
result = alt (values , axis = axis , skipna = skipna , ** kwds )
You can’t perform that action at this time.
0 commit comments