Skip to content

Commit 517973e

Browse files
authored
DOC: Fix GH# in whatsnew not for DataFrameGroupBy.value_counts bugfix (#56031)
* DOC: Fix GH# in whatsnew not for DataFrameGroupBy.value_counts bugfix * Fix comment
1 parent 32ebcfc commit 517973e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

doc/source/whatsnew/v2.2.0.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -446,9 +446,9 @@ Groupby/resample/rolling
446446
- Bug in :meth:`DataFrame.resample` not respecting ``closed`` and ``label`` arguments for :class:`~pandas.tseries.offsets.BusinessDay` (:issue:`55282`)
447447
- Bug in :meth:`DataFrame.resample` where bin edges were not correct for :class:`~pandas.tseries.offsets.BusinessDay` (:issue:`55281`)
448448
- Bug in :meth:`DataFrame.resample` where bin edges were not correct for :class:`~pandas.tseries.offsets.MonthBegin` (:issue:`55271`)
449-
- Bug in :meth:`DataFrameGroupBy.value_counts` and :meth:`SeriesGroupBy.value_count` could result in incorrect sorting if the columns of the DataFrame or name of the Series are integers (:issue:`56007`)
450-
- Bug in :meth:`DataFrameGroupBy.value_counts` and :meth:`SeriesGroupBy.value_count` would not respect ``sort=False`` in :meth:`DataFrame.groupby` and :meth:`Series.groupby` (:issue:`56007`)
451-
- Bug in :meth:`DataFrameGroupBy.value_counts` and :meth:`SeriesGroupBy.value_count` would sort by proportions rather than frequencies when ``sort=True`` and ``normalize=True`` (:issue:`56007`)
449+
- Bug in :meth:`DataFrameGroupBy.value_counts` and :meth:`SeriesGroupBy.value_count` could result in incorrect sorting if the columns of the DataFrame or name of the Series are integers (:issue:`55951`)
450+
- Bug in :meth:`DataFrameGroupBy.value_counts` and :meth:`SeriesGroupBy.value_count` would not respect ``sort=False`` in :meth:`DataFrame.groupby` and :meth:`Series.groupby` (:issue:`55951`)
451+
- Bug in :meth:`DataFrameGroupBy.value_counts` and :meth:`SeriesGroupBy.value_count` would sort by proportions rather than frequencies when ``sort=True`` and ``normalize=True`` (:issue:`55951`)
452452

453453
Reshaping
454454
^^^^^^^^^

pandas/core/groupby/groupby.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2834,7 +2834,7 @@ def _value_counts(
28342834
if self.sort:
28352835
# Sort by the groupings
28362836
names = result_series.index.names
2837-
# GH#56007 - Temporarily replace names in case they are integers
2837+
# GH#55951 - Temporarily replace names in case they are integers
28382838
result_series.index.names = range(len(names))
28392839
index_level = list(range(len(self.grouper.groupings)))
28402840
result_series = result_series.sort_index(

0 commit comments

Comments
 (0)