Skip to content

Commit 85f4628

Browse files
DOC: simplify dtype inference note in DataFrame.apply
Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>
1 parent 2c06f64 commit 85f4628

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pandas/core/frame.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10557,9 +10557,7 @@ def apply(
1055710557
.. warning::
1055810558
1055910559
When ``raw=True``, the result dtype is inferred from the **first**
10560-
returned value. If that value is not ``None`` but later calls return
10561-
``None``, a ``TypeError`` may occur because NumPy infers a
10562-
non-nullable dtype.
10560+
returned value.
1056310561
1056410562
result_type : {'expand', 'reduce', 'broadcast', None}, default None
1056510563
These only act when ``axis=1`` (columns):

0 commit comments

Comments
 (0)