Skip to content

Commit 2bd5f28

Browse files
Backport PR #51627 on branch 2.0.x (BUG: Change default of group_keys to True) (#51632)
Backport PR #51627: BUG: Change default of group_keys to True Co-authored-by: Richard Shadrach <[email protected]>
1 parent e6255d8 commit 2bd5f28

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pandas/core/frame.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8208,7 +8208,7 @@ def groupby(
82088208
level: IndexLabel | None = None,
82098209
as_index: bool = True,
82108210
sort: bool = True,
8211-
group_keys: bool | lib.NoDefault = no_default,
8211+
group_keys: bool = True,
82128212
observed: bool = False,
82138213
dropna: bool = True,
82148214
) -> DataFrameGroupBy:

pandas/core/series.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2002,7 +2002,7 @@ def groupby(
20022002
level: IndexLabel = None,
20032003
as_index: bool = True,
20042004
sort: bool = True,
2005-
group_keys: bool | lib.NoDefault = no_default,
2005+
group_keys: bool = True,
20062006
observed: bool = False,
20072007
dropna: bool = True,
20082008
) -> SeriesGroupBy:

0 commit comments

Comments
 (0)