Skip to content

BUG: Change default of observed in Series.groupby #62025

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

rhshadrach
Copy link
Member

  • closes #xxxx (Replace xxxx with the GitHub issue number)
  • Tests added and passed if fixing a bug or adding a new feature
  • All code checks passed.
  • Added type annotations to new arguments/methods/functions.
  • Added an entry in the latest doc/source/whatsnew/vX.X.X.rst file if fixing a bug or adding a new feature.

Fix for #57330. In all tests where observed makes a difference, we explicitly specify observed so this wasn't noticed. The deprecation itself was properly done (saying that we were changing the default to True), it was only the enforcement of the deprecation that had a mistake.

@rhshadrach rhshadrach added Bug Groupby Categorical Categorical Data Type labels Aug 2, 2025
@rhshadrach rhshadrach added this to the 3.0 milestone Aug 2, 2025
@rhshadrach rhshadrach changed the title BUG: Change default of observed in SeriesGroupBy BUG: Change default of observed in Series.groupby Aug 2, 2025
@rhshadrach rhshadrach requested a review from mroeschke August 2, 2025 18:55
@mroeschke mroeschke merged commit 364ca58 into pandas-dev:main Aug 2, 2025
55 checks passed
@mroeschke
Copy link
Member

Thanks @rhshadrach

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Categorical Categorical Data Type Groupby
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants