Skip to content

Commit c1214b4

Browse files
author
mdeboc
committed
DOC: update the pandas.DataFrame.apply docstring
1 parent 8caf5f6 commit c1214b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/core/frame.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4822,8 +4822,8 @@ def apply(self, func, axis=0, broadcast=None, raw=False, reduce=None,
48224822
Apply a function along an axis of the DataFrame.
48234823
48244824
Objects passed to the function are Series objects having as index
4825-
either the DataFrame's index (`axis=0`)
4826-
or the DataFrame's columns (`axis=1`).
4825+
either the DataFrame's index (``axis=0``)
4826+
or the DataFrame's columns (``axis=1``).
48274827
If `result_type` is None, the final return type is the return
48284828
type of the applied function.
48294829
Otherwise, it depends on the `result_type` argument.
@@ -4873,7 +4873,7 @@ def apply(self, func, axis=0, broadcast=None, raw=False, reduce=None,
48734873
by result_type='reduce'.
48744874
48754875
result_type : {'expand', 'reduce', 'broadcast', None}
4876-
These only act when `axis=1` (columns):
4876+
These only act when ``axis=1`` (columns):
48774877
48784878
* 'expand' : list-like results will be turned into columns.
48794879
* 'reduce' : returns a Series if possible rather than expanding

0 commit comments

Comments
 (0)