45
45
ABCSeries ,
46
46
)
47
47
48
+ from pandas .core ._numba .executor import generate_apply_looper
48
49
import pandas .core .common as com
49
50
from pandas .core .construction import ensure_wrapped_if_datetimelike
50
- from pandas .core ._numba .executor import generate_apply_looper
51
51
from pandas .core .util .numba_ import (
52
52
get_jit_arguments ,
53
53
prepare_function_arguments ,
@@ -211,7 +211,7 @@ def apply(
211
211
"""
212
212
213
213
looper_args , looper_kwargs = prepare_function_arguments (
214
- func , # type: ignore[arg-type]
214
+ func , # type: ignore[arg-type]
215
215
args ,
216
216
kwargs ,
217
217
num_required_args = 1 ,
@@ -221,8 +221,8 @@ def apply(
221
221
# [..., Any] | str] | dict[Hashable,Callable[..., Any] | str |
222
222
# list[Callable[..., Any] | str]]"; expected "Hashable"
223
223
nb_looper = generate_apply_looper (
224
- func , # type: ignore[arg-type]
225
- ** get_jit_arguments (engine_kwargs )
224
+ func , # type: ignore[arg-type]
225
+ ** get_jit_arguments (engine_kwargs ),
226
226
)
227
227
result = nb_looper (data , axis , * looper_args )
228
228
# If we made the result 2-D, squeeze it back to 1-D
0 commit comments