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

Remove Ambiguous Behavior of Tuple as Grouping #29755

Merged
merged 7 commits into from
Nov 25, 2019

Conversation

WillAyd
Copy link
Member

@WillAyd WillAyd commented Nov 20, 2019

follow up to #18314

Hashable,
List[Hashable],
Callable[[Hashable], Hashable],
List[Callable[[Hashable], Hashable]],
Copy link
Member Author

Choose a reason for hiding this comment

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

Pretty large signature and maybe worth trimming down / cleaning up (see #22278) but documenting as-is state

Copy link
Member

Choose a reason for hiding this comment

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

yikes. maybe a comment pointing to the relevant issue?

@WillAyd WillAyd added Deprecate Functionality to remove in pandas Groupby labels Nov 20, 2019
doc/source/whatsnew/v1.0.0.rst Show resolved Hide resolved
pandas/core/groupby/groupby.py Outdated Show resolved Hide resolved
@simonjayhawkins simonjayhawkins added this to the 1.0 milestone Nov 21, 2019
"b": [1, 2, 2, 2],
("a", "b"): [1, 1, 1, 1],
"a": [2, 2, 2, 2],
"b": [2, 2, 2, 2],
"c": [1, 1, 1, 1],
Copy link
Member

Choose a reason for hiding this comment

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

why does this dataframe need to change? the rest of the test change makes sense

Copy link
Member Author

Choose a reason for hiding this comment

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

Didn't need to just figured easier to disambiguate between this and the respective a / b columns if they have entirely different values

@@ -343,14 +345,23 @@ def _group_selection_context(groupby):
groupby._reset_group_selection()


_KeysArgType = Union[
Copy link
Contributor

Choose a reason for hiding this comment

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

this is a monster. can you add some descriptions to it on each line (followon ok); maybe this should be in _typing?

@jreback jreback merged commit 5e9bff6 into pandas-dev:master Nov 25, 2019
@jreback
Copy link
Contributor

jreback commented Nov 25, 2019

thanks @WillAyd small followon request.

@jbrockmendel
Copy link
Member

@WillAyd pls be sure to update #6581/#13777 if called for

@jbrockmendel
Copy link
Member

@WillAyd looks like you marked the checkbox in #6581; the process is to move the entry to #13777 and add in parens the PR reference.

@WillAyd WillAyd deleted the no-tuple-grpby branch November 29, 2019 21:30
@WillAyd
Copy link
Member Author

WillAyd commented Nov 29, 2019

My mistake - should be updated now

proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
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.

None yet

4 participants