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

DEPR: Change raw kwarg in rolling/expanding.apply to False #29829

Merged
merged 3 commits into from
Nov 26, 2019

Conversation

mroeschke
Copy link
Member

@mroeschke mroeschke added Deprecate Functionality to remove in pandas Window rolling, ewma, expanding labels Nov 25, 2019
@@ -1214,27 +1209,15 @@ def count(self):
"""
)

def apply(self, func, raw=None, args=(), kwargs={}):
def apply(self, func, raw=False, args=(), kwargs={}):
Copy link
Member

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

Copy link
Member Author

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.

@jbrockmendel
Copy link
Member

small comment, not a blocker. LGTM

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

jreback commented Nov 26, 2019

thanks @mroeschke can you update the deprecations issue as well (move to completed)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deprecate Functionality to remove in pandas Window rolling, ewma, expanding
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants