-
-
Notifications
You must be signed in to change notification settings - Fork 18k
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
DEPR: Change raw kwarg in rolling/expanding.apply to False #29829
Conversation
@@ -1214,27 +1209,15 @@ def count(self): | |||
""" | |||
) | |||
|
|||
def apply(self, func, raw=None, args=(), kwargs={}): | |||
def apply(self, func, raw=False, 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.
can this now be annotated?
Doesnt have to be for this PR, but kwargs should be changed to not have a mutable default
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 can do both in a follow up.
Agreed that this should be kwargs=None
. The docstring is misleading as well since it says apply takes **kwargs
so reason enough for a cleanup + full change here.
small comment, not a blocker. LGTM |
thanks @mroeschke can you update the deprecations issue as well (move to completed) |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff