Closed pdeffebach closed 3 years ago
Does it not already? Or have I misunderstood your intent?
Compare "rolling" with "running"
https://github.com/JeffreySarnoff/RollingFunctions.jl#rolling-a-function-over-data
https://github.com/JeffreySarnoff/RollingFunctions.jl#running-a-function-over-data
glad it is available
Came up on discourse. Someone has a DataFrame,
and they want to add a new column
z
wherez = rolling(sum, df.y, 2)
.Unfortunately, this gives a
5
element vector, so you can't usetransform
from DataFrames.Can we add a keyword argument to add padding? Could hurt performance because it would change the type of output... but could be a good option to have.