@@ -4819,9 +4819,9 @@ def aggregate(self, func, axis=0, *args, **kwargs):
4819
4819
def apply (self , func , axis = 0 , broadcast = None , raw = False , reduce = None ,
4820
4820
result_type = None , args = (), ** kwds ):
4821
4821
"""
4822
- Apply a function along an axis of the `Series` .
4822
+ Apply a function along an axis of the DataFrame .
4823
4823
4824
- Objects passed to the function are ` Series` objects having as index
4824
+ Objects passed to the function are Series objects having as index
4825
4825
either the DataFrame's index (`axis=0`)
4826
4826
or the DataFrame's columns (`axis=1`).
4827
4827
If `result_type` is None, the final return type is the return
@@ -4840,7 +4840,7 @@ def apply(self, func, axis=0, broadcast=None, raw=False, reduce=None,
4840
4840
broadcast : boolean, optional
4841
4841
Only relevant for aggregation functions:
4842
4842
4843
- * `False` or `None` : returns a ` Series` whose length is the length
4843
+ * `False` or `None` : returns a Series whose length is the length
4844
4844
of the index or the number of columns (based on the `axis`
4845
4845
parameter)
4846
4846
* `True` : results will be broadcast to the original shape
@@ -4851,7 +4851,7 @@ def apply(self, func, axis=0, broadcast=None, raw=False, reduce=None,
4851
4851
by result_type='broadcast'.
4852
4852
4853
4853
raw : boolean, default False
4854
- * `False` : passes each row or column into a ` Series` to the
4854
+ * `False` : passes each row or column into a Series to the
4855
4855
function.
4856
4856
* `True` : the passed function will receive ndarray objects
4857
4857
instead.
@@ -4860,12 +4860,12 @@ def apply(self, func, axis=0, broadcast=None, raw=False, reduce=None,
4860
4860
reduce : boolean or None, default None
4861
4861
Try to apply reduction procedures. If the `DataFrame` is empty,
4862
4862
: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
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
4868
+ If reduce is True a Series will always be returned, and if
4869
4869
`False` a `DataFrame` will always be returned.
4870
4870
4871
4871
.. deprecated:: 0.23.0.
@@ -4876,15 +4876,15 @@ def apply(self, func, axis=0, broadcast=None, raw=False, reduce=None,
4876
4876
These only act when `axis=1` (columns):
4877
4877
4878
4878
* 'expand' : list-like results will be turned into columns.
4879
- * 'reduce' : returns a ` Series` if possible rather than expanding
4879
+ * 'reduce' : returns a Series if possible rather than expanding
4880
4880
list-like results. This is the opposite of 'expand'.
4881
4881
* 'broadcast' : results will be broadcast to the original shape
4882
4882
of the `DataFrame`, the original index and columns will be
4883
4883
retained.
4884
4884
4885
4885
The default behaviour (`None`) depends on the return value of the
4886
- applied function: list-like results will be returned as a ` Series`
4887
- of those. However if the apply function returns a ` Series` these
4886
+ applied function: list-like results will be returned as a Series
4887
+ of those. However if the apply function returns a Series these
4888
4888
are expanded to columns.
4889
4889
4890
4890
.. versionadded:: 0.23.0.
0 commit comments