4545 ABCSeries ,
4646)
4747
48+ from pandas .core ._numba .executor import generate_apply_looper
4849import pandas .core .common as com
4950from pandas .core .construction import ensure_wrapped_if_datetimelike
50- from pandas .core ._numba .executor import generate_apply_looper
5151from pandas .core .util .numba_ import (
5252 get_jit_arguments ,
5353 prepare_function_arguments ,
@@ -211,7 +211,7 @@ def apply(
211211 """
212212
213213 looper_args , looper_kwargs = prepare_function_arguments (
214- func , # type: ignore[arg-type]
214+ func , # type: ignore[arg-type]
215215 args ,
216216 kwargs ,
217217 num_required_args = 1 ,
@@ -221,8 +221,8 @@ def apply(
221221 # [..., Any] | str] | dict[Hashable,Callable[..., Any] | str |
222222 # list[Callable[..., Any] | str]]"; expected "Hashable"
223223 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 ),
226226 )
227227 result = nb_looper (data , axis , * looper_args )
228228 # If we made the result 2-D, squeeze it back to 1-D
0 commit comments