Skip to content

Commit 12d1dda

Browse files
authored
DOC: Add inference type information to Dataframe Apply (#61065)
* Add inference type info to apply * DOC: Add inference type information to Dataframe Apply
1 parent e59a411 commit 12d1dda

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/core/frame.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -10286,7 +10286,9 @@ def apply(
1028610286
either the DataFrame's index (``axis=0``) or the DataFrame's columns
1028710287
(``axis=1``). By default (``result_type=None``), the final return type
1028810288
is inferred from the return type of the applied function. Otherwise,
10289-
it depends on the `result_type` argument.
10289+
it depends on the `result_type` argument. The return type of the applied
10290+
function is inferred based on the first computed result obtained after
10291+
applying the function to a Series object.
1029010292
1029110293
Parameters
1029210294
----------

0 commit comments

Comments
 (0)