Skip to content

Commit 6e1819a

Browse files
committed
docs
1 parent ad9cbd9 commit 6e1819a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/source/basics.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -797,8 +797,10 @@ The return type of the function passed to :meth:`~DataFrame.apply` affects the
797797
type of the ultimate output from DataFrame.apply
798798

799799
* If the applied function returns a ``Series``, the ultimate output is a ``DataFrame``.
800-
The columns match the index ``Series`` returned by the applied function.
800+
The columns match the index of the ``Series`` returned by the applied function.
801801
* If the applied function returns any other type, the ultimate output is a ``Series``.
802+
* A ``result_type`` kwarg is accepted with the options: ``reduce``, ``broadcast``, and ``expand``.
803+
These will determine how list-likes return results expand (or not) to a ``DataFrame``.
802804

803805
:meth:`~DataFrame.apply` combined with some cleverness can be used to answer many questions
804806
about a data set. For example, suppose we wanted to extract the date where the

0 commit comments

Comments
 (0)