Skip to content

Commit f03122b

Browse files
author
luke
committed
Fix mypy and improve what's new
1 parent 9c21e63 commit f03122b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/source/whatsnew/v2.0.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1366,7 +1366,7 @@ Reshaping
13661366
- Bug in :meth:`DataFrame.explode` raising ``ValueError`` on multiple columns with ``NaN`` values or empty lists (:issue:`46084`)
13671367
- Bug in :meth:`DataFrame.transpose` with ``IntervalDtype`` column with ``timedelta64[ns]`` endpoints (:issue:`44917`)
13681368
- Bug in :meth:`DataFrame.agg` and :meth:`Series.agg` would ignore arguments when passed a list of functions (:issue:`50863`)
1369-
- Bug in :meth:`DataFrame.agg` and :meth:`Series.agg` would return incorrect type when dist-like argument passed in (:issue:`51099`)
1369+
- Bug in :meth:`DataFrame.agg` and :meth:`Series.agg` on non-unique columns would return incorrect type when dist-like argument passed in (:issue:`51099`)
13701370

13711371
Sparse
13721372
^^^^^^

pandas/core/apply.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ def agg_dict_like(self) -> DataFrame | Series:
411411
context_manager = nullcontext()
412412

413413
if isinstance(selected_obj, ABCDataFrame):
414-
is_non_unique_col = selected_obj.columns.duplicated()
414+
is_non_unique_col = selected_obj.columns.duplicated().tolist()
415415
else:
416416
is_non_unique_col = [False]
417417

0 commit comments

Comments
 (0)