@@ -10348,9 +10348,12 @@ def apply(
10348
10348
see the documentation for the engine argument for more information.
10349
10349
10350
10350
jit : function, optional
10351
- Numba or Bodo decorator to JIT compile the execution. The main available
10352
- options are ``numba.jit``, ``numba.njit`` or ``bodo.jit``. Parameters can
10353
- be used in the same way as the decorators ``numba.jit(parallel=True)`` etc.
10351
+ Decorator to JIT compile the execution. The main available options are
10352
+ ``numba.jit``, ``numba.njit`` or ``bodo.jit``. Parameters can be used in
10353
+ the same way as the decorators, for example ``numba.jit(parallel=True)``.
10354
+
10355
+ Refer to the the [1]_ and [2]_ documentation to learn about limitations
10356
+ on what code can be JIT compiled.
10354
10357
10355
10358
**kwargs
10356
10359
Additional keyword arguments to pass as keywords arguments to
@@ -10374,6 +10377,12 @@ def apply(
10374
10377
behavior or errors and are not supported. See :ref:`gotchas.udf-mutation`
10375
10378
for more details.
10376
10379
10380
+ References
10381
+ ----------
10382
+ .. [1] `Numba documentation
10383
+ <https://numba.readthedocs.io/en/stable/index.html>`_
10384
+ .. [2] `Bodo documentation
10385
+ <https://docs.bodo.ai/latest/>`/
10377
10386
Examples
10378
10387
--------
10379
10388
>>> df = pd.DataFrame([[4, 9]] * 3, columns=["A", "B"])
@@ -10462,12 +10471,13 @@ def apply(
10462
10471
obj = self ,
10463
10472
method = "apply" ,
10464
10473
func = func ,
10474
+ args = args ,
10475
+ kwargs = kwargs ,
10465
10476
axis = axis ,
10466
10477
raw = raw ,
10467
10478
result_type = result_type ,
10468
10479
by_row = by_row ,
10469
- args = args ,
10470
- kwargs = kwargs )
10480
+ )
10471
10481
10472
10482
from pandas .core .apply import frame_apply
10473
10483
@@ -10600,9 +10610,11 @@ def _append(
10600
10610
10601
10611
index = Index (
10602
10612
[other .name ],
10603
- name = self .index .names
10604
- if isinstance (self .index , MultiIndex )
10605
- else self .index .name ,
10613
+ name = (
10614
+ self .index .names
10615
+ if isinstance (self .index , MultiIndex )
10616
+ else self .index .name
10617
+ ),
10606
10618
)
10607
10619
row_df = other .to_frame ().T
10608
10620
# infer_objects is needed for
0 commit comments