File tree 3 files changed +8
-1
lines changed
3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ Fixed regressions
27
27
Bug fixes
28
28
~~~~~~~~~
29
29
- Bug in the Copy-on-Write implementation losing track of views in certain chained indexing cases (:issue: `48996 `)
30
- -
30
+ - Bug in inconsistent DataFrame.agg behavior when passing as kwargs `` numeric_only=True `` ( :issue: ` 49352 `
31
31
32
32
.. ---------------------------------------------------------------------------
33
33
.. _whatsnew_152.other :
Original file line number Diff line number Diff line change @@ -9322,6 +9322,9 @@ def apply(
9322
9322
Functions that mutate the passed object can produce unexpected
9323
9323
behavior or errors and are not supported. See :ref:`gotchas.udf-mutation`
9324
9324
for more details.
9325
+ Use the keyword argument `numeric_only=True` to apply functions
9326
+ only to numeric columns and to skip the non-numeric columns.
9327
+ e.g. the column contains a string.
9325
9328
9326
9329
Examples
9327
9330
--------
Original file line number Diff line number Diff line change 46
46
for more details.
47
47
48
48
A passed user-defined-function will be passed a Series for evaluation.
49
+
50
+ Use the keyword argument `numeric_only=True` to apply functions
51
+ only to numeric columns and to skip the non-numeric columns.
52
+ e.g. the column contains a string.
49
53
{examples}"""
50
54
51
55
_shared_docs [
You can’t perform that action at this time.
0 commit comments