-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: rolling not accepting Timedelta-like window args (#15440) #15443
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
Conversation
@@ -1014,7 +1015,8 @@ def validate(self): | |||
|
|||
# we allow rolling on a datetimelike index | |||
if (self.is_datetimelike and | |||
isinstance(self.window, (compat.string_types, DateOffset))): | |||
isinstance(self.window, (compat.string_types, DateOffset, |
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.
don't need pd.Timedelta here (its a sub-class of timedelta
).
lgtm. minor change. ping on green. |
Remove unnecessary pd.Timedelta
Removed Looks like appveyor failed early:
|
yeah its fine. ping on green from travis. |
Ping travis green |
@mroeschke Thanks! |
@mroeschke Thanks for taking a crack at this! |
Remove unnecessary pd.Timedelta
git diff upstream/master | flake8 --diff
Allow
rolling()
to acceptpd.Timedelta
ordatetime.timedelta
as awindow
argument.