Skip to content

TST: dropping of nuisance columns for groupby ops #38815

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

Closed
rhshadrach opened this issue Dec 30, 2020 · 2 comments · Fixed by #43674
Closed

TST: dropping of nuisance columns for groupby ops #38815

rhshadrach opened this issue Dec 30, 2020 · 2 comments · Fixed by #43674
Assignees
Labels
Groupby Needs Tests Unit test(s) needed to prevent regressions Nuisance Columns Identifying/Dropping nuisance columns in reductions, groupby.add, DataFrame.apply
Milestone

Comments

@rhshadrach
Copy link
Member

xref #38774

As far as I can tell, for groupby we only have two tests for dropping nuisance columns and these only involve sum/mean. A more robust and parameterized test over all the groupby ops that drop nuisance columns should be added.

@rhshadrach rhshadrach added Groupby Needs Tests Unit test(s) needed to prevent regressions Nuisance Columns Identifying/Dropping nuisance columns in reductions, groupby.add, DataFrame.apply labels Dec 30, 2020
@rhshadrach rhshadrach added this to the Contributions Welcome milestone Dec 30, 2020
@horaceklai
Copy link
Contributor

take

@horaceklai
Copy link
Contributor

Is there a list of aggregation functions where nuisance columns are dropped?

I expected functions such as max, min, last, first to drop columns of object datatypes. But I was wrong.

So far I have mean, sum, std, var, sem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Groupby Needs Tests Unit test(s) needed to prevent regressions Nuisance Columns Identifying/Dropping nuisance columns in reductions, groupby.add, DataFrame.apply
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants