Skip to content

TYP: Replace namedtuple with dataclass #40531 #43107

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
merged 3 commits into from
Aug 19, 2021

Conversation

franslarsson
Copy link
Contributor

This PR replaces namedtuple with dataclass in pandas/core/groupby/base.py and closes #40531.

The parameters order and frozen is set equal to True to make sure that that behaviour of OutputKey does not change.

@MarcoGorelli MarcoGorelli self-requested a review August 19, 2021 10:06
@MarcoGorelli
Copy link
Member

MarcoGorelli commented Aug 19, 2021

@github-actions pre-commit

EDIT

looks like not all tests get run from the automated commit, so closing and reopening. but then that stopped the azure checks, so I added an empty commit - now all the CI checks seem to be running fine

Copy link
Member

@MarcoGorelli MarcoGorelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@jreback jreback added this to the 1.4 milestone Aug 19, 2021
@jreback jreback added the Clean label Aug 19, 2021
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm merge on greenish

@MarcoGorelli MarcoGorelli merged commit 405fbc4 into pandas-dev:master Aug 19, 2021
feefladder pushed a commit to feefladder/pandas that referenced this pull request Sep 7, 2021
…3107)

* TYP: Replace namedtuple with dataclass pandas-dev#40531

* Fixes from pre-commit [automated commit]

* noop

Co-authored-by: MarcoGorelli <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TYP use typed version of namedtuple
3 participants