Skip to content

Commit 4ef2169

Browse files
author
Thomas Lautenschlaeger
committed
adapted doc
1 parent 98b702e commit 4ef2169

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/source/whatsnew/v1.5.3.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Fixed regressions
2323

2424
Bug fixes
2525
~~~~~~~~~
26-
-
26+
- Bug in inconsistent DataFrame.agg behavior when passing as kwargs ``numeric_only=True`` with their associated string alias as functions (:issue:`49352`)
2727
-
2828

2929
.. ---------------------------------------------------------------------------

pandas/core/frame.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9222,7 +9222,7 @@ def _gotitem(
92229222
... columns=['A', 'B', 'C'])
92239223
92249224
Works equivalently as above. Add argument `numeric_only=True` to
9225-
aggregate only numeric columns/
9225+
aggregate only numeric columns.
92269226
92279227
>>> df.agg({'B': ["mean", 'std'], 'C': ['sum', 'mean']},
92289228
... numeric_only=True)

0 commit comments

Comments
 (0)