Skip to content

Commit dc18825

Browse files
committed
updated whatsnew and test_groupby
1 parent 45f078a commit dc18825

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

doc/source/whatsnew/v0.21.1.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Bug Fixes
6262
- Bug in ``pd.Series.rolling.skew()`` and ``rolling.kurt()`` with all equal values has floating issue (:issue:`18044`)
6363
- Bug in ``pd.DataFrameGroupBy.count()`` when counting over a datetimelike column (:issue:`13393`)
6464
- Bug in ``pd.concat`` when empty and non-empty DataFrames or Series are concatenated (:issue:`18178` :issue:`18187`)
65-
- Bug in :class:`NDFrameGroupBy` fixes ValueError: no results error when grouping by a single column and aggregating with a tuple (:issue:`18079`)
65+
- Bug when grouping by a single column and aggregating with a class like`list` or `tuple` (:issue:`18079`)
6666

6767
Conversion
6868
^^^^^^^^^^

pandas/tests/groupby/test_groupby.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -2729,8 +2729,7 @@ def test_tuple_aggregation(self):
27292729
assert_frame_equal(result, expected)
27302730

27312731
result = df.groupby('A')['C'].aggregate(tuple)
2732-
expected = pd.Series([(1, 1, 1), (3, 4, 4)], index=[1, 3])
2733-
expected.name = 'C'
2732+
expected = pd.Series([(1, 1, 1), (3, 4, 4)], index=[1, 3], name='C')
27342733
expected.index.name = 'A'
27352734
assert_series_equal(result, expected)
27362735

0 commit comments

Comments
 (0)