Skip to content

Commit da64c86

Browse files
author
mdeboc
committed
DOC: update the pandas.DataFrame.apply docstring
1 parent 2432ff5 commit da64c86

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/core/frame.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4824,7 +4824,7 @@ def apply(self, func, axis=0, broadcast=None, raw=False, reduce=None,
48244824
Objects passed to the function are Series objects having as index
48254825
either the DataFrame's index (``axis=0``)
48264826
or the DataFrame's columns (``axis=1``).
4827-
If `result_type` is None, the final return type is the return
4827+
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.
48304830
@@ -4857,10 +4857,10 @@ def apply(self, func, axis=0, broadcast=None, raw=False, reduce=None,
48574857
instead.
48584858
If you are just applying a NumPy reduction function this will
48594859
achieve much better performance.
4860-
reduce : boolean or None, default None
4860+
reduce : boolean or `None`, default `None`
48614861
Try to apply reduction procedures. If the `DataFrame` is empty,
48624862
:meth:`apply` will use reduce to determine whether the result
4863-
should be a Series or a `DataFrame`. If reduce is None (the
4863+
should be a Series or a `DataFrame`. If ``reduce is None`` (the
48644864
default), :meth:`apply`'s return value will be guessed by calling
48654865
func on an empty Series
48664866
(note: while guessing, exceptions raised by `func` will be
@@ -4872,7 +4872,7 @@ def apply(self, func, axis=0, broadcast=None, raw=False, reduce=None,
48724872
This argument will be removed in a future version, replaced
48734873
by result_type='reduce'.
48744874
4875-
result_type : {'expand', 'reduce', 'broadcast', None}
4875+
result_type : {'expand', 'reduce', 'broadcast', `None`}
48764876
These only act when ``axis=1`` (columns):
48774877
48784878
* 'expand' : list-like results will be turned into columns.

0 commit comments

Comments
 (0)