Skip to content

Commit db3f8e5

Browse files
sukriti1MarcoGorelli
authored andcommitted
DOC: Updated convert_dtype of Series.apply (pandas-dev#39941)
* DOC: Updated convert_dtype of Series.apply * DOC: Updated convert_dtype for pandas.Series.apply * DOC: Updated convert_dtype for pandas.Series.apply * Editing the doc * only mention categorical as example * updates Co-authored-by: Marco Gorelli <[email protected]>
1 parent 66310d0 commit db3f8e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/series.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -4171,7 +4171,8 @@ def apply(
41714171
Python function or NumPy ufunc to apply.
41724172
convert_dtype : bool, default True
41734173
Try to find better dtype for elementwise function results. If
4174-
False, leave as dtype=object.
4174+
False, leave as dtype=object. Note that the dtype is always
4175+
preserved for extension array dtypes, such as Categorical.
41754176
args : tuple
41764177
Positional arguments passed to func after the series value.
41774178
**kwargs

0 commit comments

Comments
 (0)