Skip to content

CLN: simplify _shallow_copy #29474

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 2 commits into from
Nov 8, 2019
Merged

CLN: simplify _shallow_copy #29474

merged 2 commits into from
Nov 8, 2019

Conversation

jbrockmendel
Copy link
Member

The class hierarchy of in/around groupby is really tough, this simplifies it a little bit

@WillAyd
Copy link
Member

WillAyd commented Nov 8, 2019

Is GroupByMixin used at all within groupby? Maybe worth moving the entire class

@jbrockmendel
Copy link
Member Author

huh, looks like it isnt. any strong opinion on where it would be moved?

@WillAyd
Copy link
Member

WillAyd commented Nov 8, 2019 via email

@jreback
Copy link
Contributor

jreback commented Nov 8, 2019

let me look

I made these for consistency between group by and window ops

@jbrockmendel
Copy link
Member Author

Maybe merge into WindowMixin. If it’s not actually used for GroupBy I don’t even think we need to keep the GroupByMixin name as that would be rather misleading

For now at least I'm leaning towards keeping it where it is. it would need to go into some shared-by-resample/window location, which describes a lot of groupby code anyway.

@@ -26,7 +26,23 @@
"""


class _GroupByMixin(GroupByMixin):
def _dispatch(name: str, *args, **kwargs):
Copy link
Contributor

Choose a reason for hiding this comment

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

eventually add a full doc-string if we end up using this

@jreback jreback added the Clean label Nov 8, 2019
@jreback jreback added this to the 1.0 milestone Nov 8, 2019
@jreback jreback merged commit 947bb8e into pandas-dev:master Nov 8, 2019
@jreback
Copy link
Contributor

jreback commented Nov 8, 2019

thxs

@jbrockmendel jbrockmendel deleted the gotitem branch November 8, 2019 15:18
Reksbril pushed a commit to Reksbril/pandas that referenced this pull request Nov 18, 2019
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants