Skip to content

Commit ac648ee

Browse files
authored
DOC: Add SeriesGroupBy and DataFrameGroupBy reference pages (#48500)
* WIP * DOC: Add SeriesGroupBy and DataFrameGroupBy reference pages * whatnews, fix docstring of filter * Reorder docstring sections
1 parent bbf17ea commit ac648ee

23 files changed

+224
-185
lines changed

doc/source/reference/groupby.rst

+94-62
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,14 @@ Indexing, iteration
1414
.. autosummary::
1515
:toctree: api/
1616

17-
GroupBy.__iter__
18-
GroupBy.groups
19-
GroupBy.indices
20-
GroupBy.get_group
17+
DataFrameGroupBy.__iter__
18+
SeriesGroupBy.__iter__
19+
DataFrameGroupBy.groups
20+
SeriesGroupBy.groups
21+
DataFrameGroupBy.indices
22+
SeriesGroupBy.indices
23+
DataFrameGroupBy.get_group
24+
SeriesGroupBy.get_group
2125

2226
.. currentmodule:: pandas
2327

@@ -41,57 +45,21 @@ Function application
4145
.. autosummary::
4246
:toctree: api/
4347

44-
GroupBy.apply
45-
GroupBy.agg
48+
SeriesGroupBy.apply
49+
DataFrameGroupBy.apply
50+
SeriesGroupBy.agg
51+
DataFrameGroupBy.agg
4652
SeriesGroupBy.aggregate
4753
DataFrameGroupBy.aggregate
4854
SeriesGroupBy.transform
4955
DataFrameGroupBy.transform
50-
GroupBy.pipe
51-
52-
Computations / descriptive stats
53-
--------------------------------
54-
.. autosummary::
55-
:toctree: api/
56-
57-
GroupBy.all
58-
GroupBy.any
59-
GroupBy.bfill
60-
GroupBy.backfill
61-
GroupBy.count
62-
GroupBy.cumcount
63-
GroupBy.cummax
64-
GroupBy.cummin
65-
GroupBy.cumprod
66-
GroupBy.cumsum
67-
GroupBy.ffill
68-
GroupBy.first
69-
GroupBy.head
70-
GroupBy.last
71-
GroupBy.max
72-
GroupBy.mean
73-
GroupBy.median
74-
GroupBy.min
75-
GroupBy.ngroup
76-
GroupBy.nth
77-
GroupBy.ohlc
78-
GroupBy.pad
79-
GroupBy.prod
80-
GroupBy.rank
81-
GroupBy.pct_change
82-
GroupBy.size
83-
GroupBy.sem
84-
GroupBy.std
85-
GroupBy.sum
86-
GroupBy.var
87-
GroupBy.tail
88-
89-
The following methods are available in both ``SeriesGroupBy`` and
90-
``DataFrameGroupBy`` objects, but may differ slightly, usually in that
91-
the ``DataFrameGroupBy`` version usually permits the specification of an
92-
axis argument, and often an argument indicating whether to restrict
93-
application to columns of a specific data type.
56+
SeriesGroupBy.pipe
57+
DataFrameGroupBy.pipe
58+
DataFrameGroupBy.filter
59+
SeriesGroupBy.filter
9460

61+
``DataFrameGroupBy`` computations / descriptive stats
62+
-----------------------------------------------------
9563
.. autosummary::
9664
:toctree: api/
9765

@@ -100,6 +68,7 @@ application to columns of a specific data type.
10068
DataFrameGroupBy.backfill
10169
DataFrameGroupBy.bfill
10270
DataFrameGroupBy.corr
71+
DataFrameGroupBy.corrwith
10372
DataFrameGroupBy.count
10473
DataFrameGroupBy.cov
10574
DataFrameGroupBy.cumcount
@@ -111,42 +80,105 @@ application to columns of a specific data type.
11180
DataFrameGroupBy.diff
11281
DataFrameGroupBy.ffill
11382
DataFrameGroupBy.fillna
114-
DataFrameGroupBy.filter
115-
DataFrameGroupBy.hist
83+
DataFrameGroupBy.first
84+
DataFrameGroupBy.head
11685
DataFrameGroupBy.idxmax
11786
DataFrameGroupBy.idxmin
87+
DataFrameGroupBy.last
11888
DataFrameGroupBy.mad
89+
DataFrameGroupBy.max
90+
DataFrameGroupBy.mean
91+
DataFrameGroupBy.median
92+
DataFrameGroupBy.min
93+
DataFrameGroupBy.ngroup
94+
DataFrameGroupBy.nth
11995
DataFrameGroupBy.nunique
96+
DataFrameGroupBy.ohlc
12097
DataFrameGroupBy.pad
12198
DataFrameGroupBy.pct_change
122-
DataFrameGroupBy.plot
99+
DataFrameGroupBy.prod
123100
DataFrameGroupBy.quantile
124101
DataFrameGroupBy.rank
125102
DataFrameGroupBy.resample
126103
DataFrameGroupBy.sample
104+
DataFrameGroupBy.sem
127105
DataFrameGroupBy.shift
128106
DataFrameGroupBy.size
129107
DataFrameGroupBy.skew
108+
DataFrameGroupBy.std
109+
DataFrameGroupBy.sum
110+
DataFrameGroupBy.var
111+
DataFrameGroupBy.tail
130112
DataFrameGroupBy.take
131113
DataFrameGroupBy.tshift
132114
DataFrameGroupBy.value_counts
133115

134-
The following methods are available only for ``SeriesGroupBy`` objects.
135-
116+
``SeriesGroupBy`` computations / descriptive stats
117+
--------------------------------------------------
136118
.. autosummary::
137119
:toctree: api/
138120

139-
SeriesGroupBy.hist
121+
SeriesGroupBy.all
122+
SeriesGroupBy.any
123+
SeriesGroupBy.backfill
124+
SeriesGroupBy.bfill
125+
SeriesGroupBy.corr
126+
SeriesGroupBy.count
127+
SeriesGroupBy.cov
128+
SeriesGroupBy.cumcount
129+
SeriesGroupBy.cummax
130+
SeriesGroupBy.cummin
131+
SeriesGroupBy.cumprod
132+
SeriesGroupBy.cumsum
133+
SeriesGroupBy.describe
134+
SeriesGroupBy.diff
135+
SeriesGroupBy.ffill
136+
SeriesGroupBy.fillna
137+
SeriesGroupBy.first
138+
SeriesGroupBy.head
139+
SeriesGroupBy.last
140+
SeriesGroupBy.idxmax
141+
SeriesGroupBy.idxmin
142+
SeriesGroupBy.is_monotonic_increasing
143+
SeriesGroupBy.is_monotonic_decreasing
144+
SeriesGroupBy.mad
145+
SeriesGroupBy.max
146+
SeriesGroupBy.mean
147+
SeriesGroupBy.median
148+
SeriesGroupBy.min
149+
SeriesGroupBy.ngroup
140150
SeriesGroupBy.nlargest
141151
SeriesGroupBy.nsmallest
152+
SeriesGroupBy.nth
153+
SeriesGroupBy.nunique
142154
SeriesGroupBy.unique
143-
SeriesGroupBy.is_monotonic_increasing
144-
SeriesGroupBy.is_monotonic_decreasing
145-
146-
The following methods are available only for ``DataFrameGroupBy`` objects.
147-
155+
SeriesGroupBy.ohlc
156+
SeriesGroupBy.pad
157+
SeriesGroupBy.pct_change
158+
SeriesGroupBy.prod
159+
SeriesGroupBy.quantile
160+
SeriesGroupBy.rank
161+
SeriesGroupBy.resample
162+
SeriesGroupBy.sample
163+
SeriesGroupBy.sem
164+
SeriesGroupBy.shift
165+
SeriesGroupBy.size
166+
SeriesGroupBy.skew
167+
SeriesGroupBy.std
168+
SeriesGroupBy.sum
169+
SeriesGroupBy.var
170+
SeriesGroupBy.tail
171+
SeriesGroupBy.take
172+
SeriesGroupBy.tshift
173+
SeriesGroupBy.value_counts
174+
175+
Plotting and visualization
176+
--------------------------
148177
.. autosummary::
149178
:toctree: api/
150179

151-
DataFrameGroupBy.corrwith
152180
DataFrameGroupBy.boxplot
181+
DataFrameGroupBy.hist
182+
SeriesGroupBy.hist
183+
DataFrameGroupBy.plot
184+
SeriesGroupBy.plot

doc/source/user_guide/10min.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -528,15 +528,15 @@ See the :ref:`Grouping section <groupby>`.
528528
)
529529
df
530530
531-
Grouping and then applying the :meth:`~pandas.core.groupby.GroupBy.sum` function to the resulting
531+
Grouping and then applying the :meth:`~pandas.core.groupby.DataFrameGroupBy.sum` function to the resulting
532532
groups:
533533

534534
.. ipython:: python
535535
536536
df.groupby("A")[["C", "D"]].sum()
537537
538538
Grouping by multiple columns forms a hierarchical index, and again we can
539-
apply the :meth:`~pandas.core.groupby.GroupBy.sum` function:
539+
apply the :meth:`~pandas.core.groupby.DataFrameGroupBy.sum` function:
540540

541541
.. ipython:: python
542542

doc/source/user_guide/groupby.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ Named aggregation
632632
.. versionadded:: 0.25.0
633633

634634
To support column-specific aggregation *with control over the output column names*, pandas
635-
accepts the special syntax in :meth:`GroupBy.agg`, known as "named aggregation", where
635+
accepts the special syntax in :meth:`DataFrameGroupBy.agg` and :meth:`SeriesGroupBy.agg`, known as "named aggregation", where
636636

637637
- The keywords are the *output* column names
638638
- The values are tuples whose first element is the column to select

doc/source/whatsnew/v1.0.0.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ source, you should no longer need to install Cython into your build environment
774774
Other API changes
775775
^^^^^^^^^^^^^^^^^
776776

777-
- :class:`core.groupby.GroupBy.transform` now raises on invalid operation names (:issue:`27489`)
777+
- :meth:`.DataFrameGroupBy.transform` and :meth:`.SeriesGroupBy.transform` now raises on invalid operation names (:issue:`27489`)
778778
- :meth:`pandas.api.types.infer_dtype` will now return "integer-na" for integer and ``np.nan`` mix (:issue:`27283`)
779779
- :meth:`MultiIndex.from_arrays` will no longer infer names from arrays if ``names=None`` is explicitly provided (:issue:`27292`)
780780
- In order to improve tab-completion, pandas does not include most deprecated attributes when introspecting a pandas object using ``dir`` (e.g. ``dir(df)``).
@@ -1232,8 +1232,8 @@ GroupBy/resample/rolling
12321232
- Bug in :meth:`core.groupby.DataFrameGroupBy.agg` with timezone-aware datetime64 column incorrectly casting results to the original dtype (:issue:`29641`)
12331233
- Bug in :meth:`DataFrame.groupby` when using axis=1 and having a single level columns index (:issue:`30208`)
12341234
- Bug in :meth:`DataFrame.groupby` when using nunique on axis=1 (:issue:`30253`)
1235-
- Bug in :meth:`GroupBy.quantile` with multiple list-like q value and integer column names (:issue:`30289`)
1236-
- Bug in :meth:`GroupBy.pct_change` and :meth:`core.groupby.SeriesGroupBy.pct_change` causes ``TypeError`` when ``fill_method`` is ``None`` (:issue:`30463`)
1235+
- Bug in :meth:`.DataFrameGroupBy.quantile` and :meth:`.SeriesGroupBy.quantile` with multiple list-like q value and integer column names (:issue:`30289`)
1236+
- Bug in :meth:`.DataFrameGroupBy.pct_change` and :meth:`.SeriesGroupBy.pct_change` causes ``TypeError`` when ``fill_method`` is ``None`` (:issue:`30463`)
12371237
- Bug in :meth:`Rolling.count` and :meth:`Expanding.count` argument where ``min_periods`` was ignored (:issue:`26996`)
12381238

12391239
Reshaping

doc/source/whatsnew/v1.0.1.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Fixed regressions
2121
- Fixed regression in :class:`Series` multiplication when multiplying a numeric :class:`Series` with >10000 elements with a timedelta-like scalar (:issue:`31457`)
2222
- Fixed regression in ``.groupby().agg()`` raising an ``AssertionError`` for some reductions like ``min`` on object-dtype columns (:issue:`31522`)
2323
- Fixed regression in ``.groupby()`` aggregations with categorical dtype using Cythonized reduction functions (e.g. ``first``) (:issue:`31450`)
24-
- Fixed regression in :meth:`GroupBy.apply` if called with a function which returned a non-pandas non-scalar object (e.g. a list or numpy array) (:issue:`31441`)
24+
- Fixed regression in :meth:`.DataFrameGroupBy.apply` and :meth:`.SeriesGroupBy.apply` if called with a function which returned a non-pandas non-scalar object (e.g. a list or numpy array) (:issue:`31441`)
2525
- Fixed regression in :meth:`DataFrame.groupby` whereby taking the minimum or maximum of a column with period dtype would raise a ``TypeError``. (:issue:`31471`)
2626
- Fixed regression in :meth:`DataFrame.groupby` with an empty DataFrame grouping by a level of a MultiIndex (:issue:`31670`).
2727
- Fixed regression in :meth:`DataFrame.apply` with object dtype and non-reducing function (:issue:`31505`)

doc/source/whatsnew/v1.0.2.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ Fixed regressions
1717

1818
**Groupby**
1919

20-
- Fixed regression in :meth:`groupby(..).agg() <pandas.core.groupby.GroupBy.agg>` which was failing on frames with :class:`MultiIndex` columns and a custom function (:issue:`31777`)
20+
- Fixed regression in :meth:`.DataFrameGroupBy.agg` and :meth:`.SeriesGroupBy.agg` which were failing on frames with :class:`MultiIndex` columns and a custom function (:issue:`31777`)
2121
- Fixed regression in ``groupby(..).rolling(..).apply()`` (``RollingGroupby``) where the ``raw`` parameter was ignored (:issue:`31754`)
2222
- Fixed regression in :meth:`rolling(..).corr() <pandas.core.window.rolling.Rolling.corr>` when using a time offset (:issue:`31789`)
2323
- Fixed regression in :meth:`groupby(..).nunique() <pandas.core.groupby.DataFrameGroupBy.nunique>` which was modifying the original values if ``NaN`` values were present (:issue:`31950`)
2424
- Fixed regression in ``DataFrame.groupby`` raising a ``ValueError`` from an internal operation (:issue:`31802`)
25-
- Fixed regression in :meth:`groupby(..).agg() <pandas.core.groupby.GroupBy.agg>` calling a user-provided function an extra time on an empty input (:issue:`31760`)
25+
- Fixed regression in :meth:`.DataFrameGroupBy.agg` and :meth:`.SeriesGroupBy.agg` calling a user-provided function an extra time on an empty input (:issue:`31760`)
2626

2727
**I/O**
2828

@@ -104,7 +104,7 @@ Bug fixes
104104
- Fixed bug in :meth:`DataFrame.convert_dtypes` for series with mix of integers and strings (:issue:`32117`)
105105
- Fixed bug in :meth:`DataFrame.convert_dtypes` where ``BooleanDtype`` columns were converted to ``Int64`` (:issue:`32287`)
106106
- Fixed bug in setting values using a slice indexer with string dtype (:issue:`31772`)
107-
- Fixed bug where :meth:`pandas.core.groupby.GroupBy.first` and :meth:`pandas.core.groupby.GroupBy.last` would raise a ``TypeError`` when groups contained ``pd.NA`` in a column of object dtype (:issue:`32123`)
107+
- Fixed bug where :meth:`.DataFrameGroupBy.first`, :meth:`.SeriesGroupBy.first`, :meth:`.DataFrameGroupBy.last`, and :meth:`.SeriesGroupBy.last` would raise a ``TypeError`` when groups contained ``pd.NA`` in a column of object dtype (:issue:`32123`)
108108
- Fixed bug where :meth:`DataFrameGroupBy.mean`, :meth:`DataFrameGroupBy.median`, :meth:`DataFrameGroupBy.var`, and :meth:`DataFrameGroupBy.std` would raise a ``TypeError`` on ``Int64`` dtype columns (:issue:`32219`)
109109

110110
**Strings**

doc/source/whatsnew/v1.0.4.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ including other versions of pandas.
1616
Fixed regressions
1717
~~~~~~~~~~~~~~~~~
1818
- Fix regression where :meth:`Series.isna` and :meth:`DataFrame.isna` would raise for categorical dtype when ``pandas.options.mode.use_inf_as_na`` was set to ``True`` (:issue:`33594`)
19-
- Fix regression in :meth:`GroupBy.first` and :meth:`GroupBy.last` where None is not preserved in object dtype (:issue:`32800`)
19+
- Fix regression in :meth:`.DataFrameGroupBy.first`, :meth:`.SeriesGroupBy.first`, :meth:`.DataFrameGroupBy.last`, and :meth:`.SeriesGroupBy.last` where None is not preserved in object dtype (:issue:`32800`)
2020
- Fix regression in DataFrame reductions using ``numeric_only=True`` and ExtensionArrays (:issue:`33256`).
2121
- Fix performance regression in ``memory_usage(deep=True)`` for object dtype (:issue:`33012`)
2222
- Fix regression where :meth:`Categorical.replace` would replace with ``NaN`` whenever the new value and replacement value were equal (:issue:`33288`)
@@ -26,7 +26,7 @@ Fixed regressions
2626
- Fix regression in :meth:`DataFrame.describe` raising ``TypeError: unhashable type: 'dict'`` (:issue:`32409`)
2727
- Fix regression in :meth:`DataFrame.replace` casts columns to ``object`` dtype if items in ``to_replace`` not in values (:issue:`32988`)
2828
- Fix regression in :meth:`Series.groupby` would raise ``ValueError`` when grouping by :class:`PeriodIndex` level (:issue:`34010`)
29-
- Fix regression in :meth:`GroupBy.rolling.apply` ignores args and kwargs parameters (:issue:`33433`)
29+
- Fix regression in :meth:`DataFrameGroupBy.rolling.apply` and :meth:`SeriesGroupBy.rolling.apply` ignoring args and kwargs parameters (:issue:`33433`)
3030
- Fix regression in error message with ``np.min`` or ``np.max`` on unordered :class:`Categorical` (:issue:`33115`)
3131
- Fix regression in :meth:`DataFrame.loc` and :meth:`Series.loc` throwing an error when a ``datetime64[ns, tz]`` value is provided (:issue:`32395`)
3232

@@ -40,7 +40,7 @@ Bug fixes
4040
- Bug in :meth:`~DataFrame.to_csv` was silently failing when writing to an invalid s3 bucket. (:issue:`32486`)
4141
- Bug in :meth:`read_parquet` was raising a ``FileNotFoundError`` when passed an s3 directory path. (:issue:`26388`)
4242
- Bug in :meth:`~DataFrame.to_parquet` was throwing an ``AttributeError`` when writing a partitioned parquet file to s3 (:issue:`27596`)
43-
- Bug in :meth:`GroupBy.quantile` causes the quantiles to be shifted when the ``by`` axis contains ``NaN`` (:issue:`33200`, :issue:`33569`)
43+
- Bug in :meth:`.DataFrameGroupBy.quantile` and :meth:`.SeriesGroupBy.quantile` causes the quantiles to be shifted when the ``by`` axis contains ``NaN`` (:issue:`33200`, :issue:`33569`)
4444

4545
Contributors
4646
~~~~~~~~~~~~

doc/source/whatsnew/v1.1.0.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -1126,16 +1126,16 @@ GroupBy/resample/rolling
11261126

11271127
- Using a :class:`pandas.api.indexers.BaseIndexer` with ``count``, ``min``, ``max``, ``median``, ``skew``, ``cov``, ``corr`` will now return correct results for any monotonic :class:`pandas.api.indexers.BaseIndexer` descendant (:issue:`32865`)
11281128
- :meth:`DataFrameGroupby.mean` and :meth:`SeriesGroupby.mean` (and similarly for :meth:`~DataFrameGroupby.median`, :meth:`~DataFrameGroupby.std` and :meth:`~DataFrameGroupby.var`) now raise a ``TypeError`` if a non-accepted keyword argument is passed into it. Previously an ``UnsupportedFunctionCall`` was raised (``AssertionError`` if ``min_count`` passed into :meth:`~DataFrameGroupby.median`) (:issue:`31485`)
1129-
- Bug in :meth:`GroupBy.apply` raises ``ValueError`` when the ``by`` axis is not sorted, has duplicates, and the applied ``func`` does not mutate passed in objects (:issue:`30667`)
1129+
- Bug in :meth:`.DataFrameGroupBy.apply` and :meth:`.SeriesGroupBy.apply` raising ``ValueError`` when the ``by`` axis is not sorted, has duplicates, and the applied ``func`` does not mutate passed in objects (:issue:`30667`)
11301130
- Bug in :meth:`DataFrameGroupBy.transform` produces an incorrect result with transformation functions (:issue:`30918`)
1131-
- Bug in :meth:`Groupby.transform` was returning the wrong result when grouping by multiple keys of which some were categorical and others not (:issue:`32494`)
1132-
- Bug in :meth:`GroupBy.count` causes segmentation fault when grouped-by columns contain NaNs (:issue:`32841`)
1131+
- Bug in :meth:`.DataFrameGroupBy.transform` and :meth:`.SeriesGroupBy.transform` were returning the wrong result when grouping by multiple keys of which some were categorical and others not (:issue:`32494`)
1132+
- Bug in :meth:`.DataFrameGroupBy.count` and :meth:`.SeriesGroupBy.count` causing segmentation fault when grouped-by columns contain NaNs (:issue:`32841`)
11331133
- Bug in :meth:`DataFrame.groupby` and :meth:`Series.groupby` produces inconsistent type when aggregating Boolean :class:`Series` (:issue:`32894`)
11341134
- Bug in :meth:`DataFrameGroupBy.sum` and :meth:`SeriesGroupBy.sum` where a large negative number would be returned when the number of non-null values was below ``min_count`` for nullable integer dtypes (:issue:`32861`)
11351135
- Bug in :meth:`SeriesGroupBy.quantile` was raising on nullable integers (:issue:`33136`)
11361136
- Bug in :meth:`DataFrame.resample` where an ``AmbiguousTimeError`` would be raised when the resulting timezone aware :class:`DatetimeIndex` had a DST transition at midnight (:issue:`25758`)
11371137
- Bug in :meth:`DataFrame.groupby` where a ``ValueError`` would be raised when grouping by a categorical column with read-only categories and ``sort=False`` (:issue:`33410`)
1138-
- Bug in :meth:`GroupBy.agg`, :meth:`GroupBy.transform`, and :meth:`GroupBy.resample` where subclasses are not preserved (:issue:`28330`)
1138+
- Bug in :meth:`.DataFrameGroupBy.agg`, :meth:`.SeriesGroupBy.agg`, :meth:`.DataFrameGroupBy.transform`, :meth:`.SeriesGroupBy.transform`, :meth:`.DataFrameGroupBy.resample`, and :meth:`.SeriesGroupBy.resample` where subclasses are not preserved (:issue:`28330`)
11391139
- Bug in :meth:`SeriesGroupBy.agg` where any column name was accepted in the named aggregation of :class:`SeriesGroupBy` previously. The behaviour now allows only ``str`` and callables else would raise ``TypeError``. (:issue:`34422`)
11401140
- Bug in :meth:`DataFrame.groupby` lost the name of the :class:`Index` when one of the ``agg`` keys referenced an empty list (:issue:`32580`)
11411141
- Bug in :meth:`Rolling.apply` where ``center=True`` was ignored when ``engine='numba'`` was specified (:issue:`34784`)

doc/source/whatsnew/v1.1.4.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Bug fixes
4141
~~~~~~~~~
4242
- Bug causing ``groupby(...).sum()`` and similar to not preserve metadata (:issue:`29442`)
4343
- Bug in :meth:`Series.isin` and :meth:`DataFrame.isin` raising a ``ValueError`` when the target was read-only (:issue:`37174`)
44-
- Bug in :meth:`GroupBy.fillna` that introduced a performance regression after 1.0.5 (:issue:`36757`)
44+
- Bug in :meth:`.DataFrameGroupBy.fillna` and :meth:`.SeriesGroupBy.fillna` that introduced a performance regression after 1.0.5 (:issue:`36757`)
4545
- Bug in :meth:`DataFrame.info` was raising a ``KeyError`` when the DataFrame has integer column names (:issue:`37245`)
4646
- Bug in :meth:`DataFrameGroupby.apply` would drop a :class:`CategoricalIndex` when grouped on (:issue:`35792`)
4747

doc/source/whatsnew/v1.1.5.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Fixed regressions
2828
- Fixed regression in :meth:`DataFrame.fillna` not filling ``NaN`` after other operations such as :meth:`DataFrame.pivot` (:issue:`36495`).
2929
- Fixed performance regression in ``df.groupby(..).rolling(..)`` (:issue:`38038`)
3030
- Fixed regression in :meth:`MultiIndex.intersection` returning duplicates when at least one of the indexes had duplicates (:issue:`36915`)
31-
- Fixed regression in :meth:`.GroupBy.first` and :meth:`.GroupBy.last` where ``None`` was considered a non-NA value (:issue:`38286`)
31+
- Fixed regression in :meth:`.DataFrameGroupBy.first`, :meth:`.SeriesGroupBy.first`, :meth:`.DataFrameGroupBy.last`, and :meth:`.SeriesGroupBy.last` where ``None`` was considered a non-NA value (:issue:`38286`)
3232

3333
.. ---------------------------------------------------------------------------
3434

0 commit comments

Comments
 (0)