Skip to content

REF: de-lazify Resampler init #41245

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 4 commits into from
May 2, 2021
Merged

Conversation

jbrockmendel
Copy link
Member

AFAICT the only reason Resampler.__init__ has a lazy component is bc we call super().__init__(None) in GroupByMixin.__init__. By avoiding that (and directly setting the one attribute we need that super call to set), we can de-lazify Resampler.__init__, which in turn allows simplifying a bunch of other methods

@simonjayhawkins simonjayhawkins added Refactor Internal refactoring of code Resample resample method labels May 2, 2021
@jreback jreback added this to the 1.3 milestone May 2, 2021
@jreback jreback merged commit 030d63b into pandas-dev:master May 2, 2021
@jbrockmendel jbrockmendel deleted the cln-rs2 branch May 3, 2021 01:29
yeshsurya pushed a commit to yeshsurya/pandas that referenced this pull request May 6, 2021
JulianWgs pushed a commit to JulianWgs/pandas that referenced this pull request Jul 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactor Internal refactoring of code Resample resample method
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants