Skip to content

BUG: fix suppressed TypeErrors in Groupby.mean, median, var #41292

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 1 commit into from
May 4, 2021

Conversation

jbrockmendel
Copy link
Member

These are raising TypeError because we aren't passing enough args, but then we're catching those TypeErrors and falling back. So this doesn't change behavior, just avoids an unnecessary fallback in some cases.

No tests. Surfacing the exceptions would require ugly/invasive changes.

@jreback
Copy link
Contributor

jreback commented May 4, 2021

does this change perf?

@jbrockmendel
Copy link
Member Author

does this change perf?

haven't measured, mostly object-dtype is affected

@jreback jreback added this to the 1.3 milestone May 4, 2021
@jreback
Copy link
Contributor

jreback commented May 4, 2021

does this change perf?

haven't measured, mostly object-dtype is affected

kk great. (also if you can make sure this is fully tested with object dtype as well)

@jreback jreback merged commit 08ce8df into pandas-dev:master May 4, 2021
@jbrockmendel jbrockmendel deleted the bug-gb-lambda branch May 4, 2021 16:26
JulianWgs pushed a commit to JulianWgs/pandas that referenced this pull request Jul 3, 2021
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.

2 participants