-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
REF: Define methods on resample non-dynamically #50913
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: Define methods on resample non-dynamically #50913
Conversation
@@ -895,6 +895,74 @@ def asfreq(self, fill_value=None): | |||
""" | |||
return self._upsample("asfreq", fill_value=fill_value) | |||
|
|||
def sum( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no docstring to inherit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For these one that were left out, I couldn't inherit since the associated groupby doc contains numba arguments that are not supported by resample.
*args, | ||
**kwargs, | ||
): | ||
nv.validate_resampler_func("max", args, kwargs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like args/kwargs are getting ignored for many of these. can we just remove them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that would require a deprecation cycle like what was done in #50338, but I would be +1 for deprecating *args, **kwargs here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.