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

REF: align transform logic flow #29672

Merged
merged 1 commit into from
Nov 19, 2019
Merged

Conversation

jbrockmendel
Copy link
Member

Implement SeriesGroupBy._transform_general to match DataFrameGroupBy._transform_general, re-arrange the checks within the two transform methods to be in the same order and be more linear. Make the two _transform_fast methods have closer-to-matching signatures

return self._transform_general(func, *args, **kwargs)

elif func not in base.transform_kernel_whitelist:
Copy link
Contributor

@jreback jreback Nov 17, 2019

Choose a reason for hiding this comment

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

would it be possible to consolidate this logic into the base class to keep this DRY?

Copy link
Member Author

Choose a reason for hiding this comment

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

im optimistic about this

Copy link
Member Author

Choose a reason for hiding this comment

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

do you have a strong preference for doing this in this PR? im trying to keep the scope narrow to avoid conflicting with #29124.

Copy link
Contributor

Choose a reason for hiding this comment

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

no can do later

@jreback jreback added this to the 1.0 milestone Nov 19, 2019
@jreback jreback merged commit 07e6b9d into pandas-dev:master Nov 19, 2019
@jreback
Copy link
Contributor

jreback commented Nov 19, 2019

thanks @jbrockmendel

@jbrockmendel jbrockmendel deleted the faster-gb10 branch November 19, 2019 15:20
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.

2 participants