Skip to content
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

DEPR: Change numeric_only default to False in remaining groupby methods #49951

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.

@rhshadrach rhshadrach added Groupby Deprecate Functionality to remove in pandas Nuisance Columns Identifying/Dropping nuisance columns in reductions, groupby.add, DataFrame.apply labels Nov 29, 2022
@rhshadrach rhshadrach added this to the 2.0 milestone Nov 29, 2022
Copy link
Member

@mroeschke mroeschke 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 when ready @jbrockmendel

mgr = mgr.get_numeric_data()

res_mgr = mgr.grouped_reduce(blk_func, ignore_failures=False)
res_mgr = mgr.grouped_reduce(blk_func)

if not is_ser and len(res_mgr.items) != orig_mgr_len:
Copy link
Member

Choose a reason for hiding this comment

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

im pretty sure L3780-L3790 should be unnecesary now

Copy link
Member

Choose a reason for hiding this comment

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

OK for follow-up. lets merge this sucker

Copy link
Member Author

Choose a reason for hiding this comment

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

It will never end, will it? 😆 I'll put up a followup shortly.

Copy link
Member

Choose a reason for hiding this comment

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

ive got an "assorted cleanups" branch, will do it there

@jbrockmendel jbrockmendel merged commit 48e7b6e into pandas-dev:main Nov 29, 2022
@jbrockmendel
Copy link
Member

thanks @rhshadrach, exciting to see this go! dont forget to update #30228

@rhshadrach rhshadrach deleted the groupby_numeric_only_false_final branch November 29, 2022 22:29
@rhshadrach
Copy link
Member Author

dont forget to update #30228

Done.

@jbrockmendel
Copy link
Member

There are checkboxes for 40238 and 47561 that i'd expect to be checked off. am i being too hopeful here?

@rhshadrach
Copy link
Member Author

Nope - those are done as well. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deprecate Functionality to remove in pandas Groupby Nuisance Columns Identifying/Dropping nuisance columns in reductions, groupby.add, DataFrame.apply
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants