Skip to content

Commit bc2a178

Browse files
Improving the documentation
1 parent 7ec827e commit bc2a178

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

pandas/core/frame.py

+20-8
Original file line numberDiff line numberDiff line change
@@ -10348,9 +10348,12 @@ def apply(
1034810348
see the documentation for the engine argument for more information.
1034910349
1035010350
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.
1035410357
1035510358
**kwargs
1035610359
Additional keyword arguments to pass as keywords arguments to
@@ -10374,6 +10377,12 @@ def apply(
1037410377
behavior or errors and are not supported. See :ref:`gotchas.udf-mutation`
1037510378
for more details.
1037610379
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/>`/
1037710386
Examples
1037810387
--------
1037910388
>>> df = pd.DataFrame([[4, 9]] * 3, columns=["A", "B"])
@@ -10462,12 +10471,13 @@ def apply(
1046210471
obj=self,
1046310472
method="apply",
1046410473
func=func,
10474+
args=args,
10475+
kwargs=kwargs,
1046510476
axis=axis,
1046610477
raw=raw,
1046710478
result_type=result_type,
1046810479
by_row=by_row,
10469-
args=args,
10470-
kwargs=kwargs)
10480+
)
1047110481

1047210482
from pandas.core.apply import frame_apply
1047310483

@@ -10600,9 +10610,11 @@ def _append(
1060010610

1060110611
index = Index(
1060210612
[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+
),
1060610618
)
1060710619
row_df = other.to_frame().T
1060810620
# infer_objects is needed for

0 commit comments

Comments
 (0)