Skip to content

Commit cb2336e

Browse files
authored
BUG: Change default of group_keys to True (#51627)
1 parent f943864 commit cb2336e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pandas/core/frame.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8211,7 +8211,7 @@ def groupby(
82118211
level: IndexLabel | None = None,
82128212
as_index: bool = True,
82138213
sort: bool = True,
8214-
group_keys: bool | lib.NoDefault = no_default,
8214+
group_keys: bool = True,
82158215
observed: bool = False,
82168216
dropna: bool = True,
82178217
) -> DataFrameGroupBy:

pandas/core/series.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1969,7 +1969,7 @@ def groupby(
19691969
level: IndexLabel = None,
19701970
as_index: bool = True,
19711971
sort: bool = True,
1972-
group_keys: bool | lib.NoDefault = no_default,
1972+
group_keys: bool = True,
19731973
observed: bool = False,
19741974
dropna: bool = True,
19751975
) -> SeriesGroupBy:

0 commit comments

Comments
 (0)