-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Adding Timedelta parameter to time-based .rolling() #15440
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
Comments
hmm, it allows offsets already (in fact internally that's all its doing), so this must be just an oversight
|
Ah, I hadn't known about |
Thanks ! it would be great though if Timedelta were directly supported ! |
@fjanoos we already use
this is just a matter of fixing the checking. pull-requests are welcomed! |
Is this change in the master branch now ? |
yep closed via #15443 |
Starting with a simple DataFrame:
I can invoke a time-based
.rolling()
with a string for the offset:I would like to invoke it with a
Timedelta
since it is easier to arithmetically change the window length:The text was updated successfully, but these errors were encountered: