Skip to content

Commit bd1ce77

Browse files
add bug fix to release notes
1 parent 8132f7e commit bd1ce77

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

doc/source/whatsnew/v3.0.0.rst

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,18 @@ These improvements also fixed certain bugs in groupby:
116116
- :meth:`.DataFrameGroupBy.sum` would have incorrect values when there are multiple groupings, unobserved groups, and non-numeric data (:issue:`43891`)
117117
- :meth:`.DataFrameGroupBy.value_counts` would produce incorrect results when used with some categorical and some non-categorical groupings and ``observed=False`` (:issue:`56016`)
118118

119-
.. _whatsnew_300.notable_bug_fixes.notable_bug_fix2:
119+
.. _whatsnew_300.notable_bug_fixes.improved_error_message_agg:
120120

121-
notable_bug_fix2
121+
Improved error message for :meth:`DataFrame.agg`
122+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
123+
124+
When :meth:`DataFrame.agg` is called with ``axis=1`` and a ``func`` which relabels the result index, the :func:`relabel_result` function iterates over result columns rather than the result rows, causing a confusing chain of ``KeyError`` exceptions (:issue:`58807`).
125+
126+
This error is now handled in :func:`frame_apply` by throwing a ``NotImplementedError`` with a more explicit error message.
127+
128+
.. _whatsnew_300.notable_bug_fixes.notable_bug_fix3:
129+
130+
notable_bug_fix3
122131
^^^^^^^^^^^^^^^^
123132

124133
.. ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)