Skip to content

Commit 364ca58

Browse files
authored
BUG: Change default of observed in Series.groupby (#62025)
1 parent 9ff14a3 commit 364ca58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/series.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1972,7 +1972,7 @@ def groupby(
19721972
as_index: bool = True,
19731973
sort: bool = True,
19741974
group_keys: bool = True,
1975-
observed: bool = False,
1975+
observed: bool = True,
19761976
dropna: bool = True,
19771977
) -> SeriesGroupBy:
19781978
from pandas.core.groupby.generic import SeriesGroupBy

0 commit comments

Comments
 (0)