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

32380 deprecate squeeze in groupby #33218

Merged
merged 12 commits into from
May 22, 2020

Conversation

phofl
Copy link
Member

@phofl phofl commented Apr 1, 2020

I deprecated the squeeze keyword. I think I got every points this keyword was used.
I hope that I considered every point necessary to deprecate a keyword. I tried to use other points were a keyword was deprecated as example.

pandas/core/frame.py Outdated Show resolved Hide resolved
pandas/core/groupby/generic.py Outdated Show resolved Hide resolved
@mroeschke mroeschke added Deprecate Functionality to remove in pandas Groupby labels Apr 1, 2020
Copy link
Member

@WillAyd WillAyd left a comment

Choose a reason for hiding this comment

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

Thanks for doing this - looks pretty good. As noted by @mroeschke looks like you did a little more work than was required; shouldn't remove anything just yet only warn the user appropriately

pandas/core/frame.py Outdated Show resolved Hide resolved
pandas/core/generic.py Outdated Show resolved Hide resolved
@pep8speaks
Copy link

pep8speaks commented Apr 2, 2020

Hello @phofl! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2020-05-22 13:44:41 UTC

pandas/core/generic.py Outdated Show resolved Hide resolved
pandas/core/frame.py Outdated Show resolved Hide resolved
pandas/core/series.py Outdated Show resolved Hide resolved
@mroeschke
Copy link
Member

mroeschke commented Apr 3, 2020

We will still need a whatsnew entry for this (the one you had in a prior commit was good iirc)

@phofl
Copy link
Member Author

phofl commented Apr 3, 2020

@mroeschke I have added the whats new entry.

@mroeschke
Copy link
Member

Looks good. Just need to merge master to fix the merge conflict and address @WillAyd's comment.

Co-Authored-By: William Ayd <william.ayd@icloud.com>
@phofl
Copy link
Member Author

phofl commented Apr 19, 2020

Looks good. Just need to merge master to fix the merge conflict and address @WillAyd's comment.

Done

� Conflicts:
�	doc/source/whatsnew/v1.1.0.rst
�	pandas/core/frame.py
�	pandas/core/series.py
@mroeschke mroeschke added this to the 1.1 milestone Apr 19, 2020
@topper-123
Copy link
Contributor

Looks good. Can you update.

� Conflicts:
�	doc/source/whatsnew/v1.1.0.rst
�	pandas/core/series.py
@phofl
Copy link
Member Author

phofl commented May 22, 2020

Looks good. Can you update.

Done

@WillAyd
Copy link
Member

WillAyd commented May 22, 2020

Ci failure should be unrelated - can you merge master and repush?

@jreback jreback merged commit 7c46c68 into pandas-dev:master May 22, 2020
@jreback
Copy link
Contributor

jreback commented May 22, 2020

thanks @phofl very nice.

@phofl phofl deleted the 32380_deprecate_squeeze_in_groupby branch May 23, 2020 19:59
rapids-bot bot pushed a commit to rapidsai/cudf that referenced this pull request Jul 19, 2024
In pandas, this argument was deprecated in pandas 1.x and removed in pandas 2.x. xref pandas-dev/pandas#33218

Looks like in cudf this argument was never implemented, so to align with pandas, I think it should be OK to just remove this argument

Authors:
  - Matthew Roeschke (https://github.com/mroeschke)

Approvers:
  - Vyas Ramasubramani (https://github.com/vyasr)

URL: #16312
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecate groupby() squeeze option
6 participants