Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Adding Timedelta parameter to time-based .rolling() #15440
Comments
chrisaycock
changed the title from
Adding Timedelta parameter to time-based rolling to Adding Timedelta parameter to time-based .rolling()
Feb 17, 2017
|
hmm, it allows offsets already (in fact internally that's all its doing), so this must be just an oversight
|
jreback
added Bug Difficulty Novice Effort Low Frequency Reshaping
labels
Feb 17, 2017
jreback
added this to the
0.20.0
milestone
Feb 17, 2017
|
Ah, I hadn't known about |
fjanoos
commented
Feb 17, 2017
|
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! |
mroeschke
referenced
this issue
Feb 17, 2017
Merged
BUG: rolling not accepting Timedelta-like window args (#15440) #15443
jorisvandenbossche
closed this
in #15443
Feb 18, 2017
fjanoos
commented
Mar 5, 2017
|
Is this change in the master branch now ? |
|
yep closed via #15443 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
chrisaycock commentedFeb 17, 2017
•
edited
Starting with a simple DataFrame:
I can invoke a time-based
.rolling()with a string for the offset:df.rolling('3d').sum()I would like to invoke it with a
Timedeltasince it is easier to arithmetically change the window length: