@@ -4859,18 +4859,18 @@ def apply(self, func, axis=0, broadcast=None, raw=False, reduce=None,
4859
4859
achieve much better performance.
4860
4860
reduce : bool or `None`, default `None`
4861
4861
Try to apply reduction procedures. If the `DataFrame` is empty,
4862
- :meth:`apply` will use reduce to determine whether the result
4862
+ :meth:`apply` will use ` reduce` to determine whether the result
4863
4863
should be a Series or a `DataFrame`. If ``reduce is None`` (the
4864
4864
default), :meth:`apply`'s return value will be guessed by calling
4865
- func on an empty Series
4865
+ ` func` on an empty Series
4866
4866
(note: while guessing, exceptions raised by `func` will be
4867
4867
ignored).
4868
- If reduce is True a Series will always be returned, and if
4869
- `False` a `DataFrame` will always be returned.
4868
+ If `` reduce is True`` a Series will always be returned, and if
4869
+ ``reduce is False` ` a `DataFrame` will always be returned.
4870
4870
4871
4871
.. deprecated:: 0.23.0.
4872
4872
This argument will be removed in a future version, replaced
4873
- by result_type='reduce'.
4873
+ by `` result_type='reduce'`` .
4874
4874
4875
4875
result_type : {'expand', 'reduce', 'broadcast', `None`}
4876
4876
These only act when ``axis=1`` (columns):
@@ -4898,9 +4898,9 @@ def apply(self, func, axis=0, broadcast=None, raw=False, reduce=None,
4898
4898
4899
4899
Notes
4900
4900
-----
4901
- In the current implementation apply calls func twice on the
4901
+ In the current implementation apply calls ` func` twice on the
4902
4902
first column/row to decide whether it can take a fast or slow
4903
- code path. This can lead to unexpected behavior if func has
4903
+ code path. This can lead to unexpected behavior if ` func` has
4904
4904
side-effects, as they will take effect twice for the first
4905
4905
column/row.
4906
4906
0 commit comments