DataFrames.jl icon indicating copy to clipboard operation
DataFrames.jl copied to clipboard

Explain in the manual how to use rolling functions with DataFrames.jl

Open zsz00 opened this issue 3 years ago • 8 comments

Hope support Roll a function over data, run a statistic along a [weighted] data window

ref: https://github.com/JeffreySarnoff/RollingFunctions.jl #https://github.com/JuliaML/TableTransforms.jl/issues/121

zsz00 avatar Sep 19 '22 12:09 zsz00

What functionality is missing in RollingFunctions.jl? In general if it is missing it should be added there.

CC @JeffreySarnoff

bkamins avatar Sep 19 '22 12:09 bkamins

Yup

JeffreySarnoff avatar Sep 19 '22 12:09 JeffreySarnoff

I think features combination is better to let this package do it than to let the user do it himself.

zsz00 avatar Sep 19 '22 13:09 zsz00

I am not sure what you mean exactly. Can you give an example code what you want?

bkamins avatar Sep 19 '22 13:09 bkamins

I have time series columns need roll process.

  1. I hope more integration with TableTransforms.jl or dataframes.jl. or more using doc.
  2. need rolling(function, data, windowsize, stride)
  3. RollingFunctions.jl newest realse in 2019.3, I mistakenly thought it was not actively developed.

zsz00 avatar Sep 19 '22 13:09 zsz00

RollingFunctions.jl already supports rolling(function, data, windowsize) so what would need to be added is rolling(function, data, windowsize, stride) - you would just need to define what you mean with stride. Such a change should be made in RollingFunctions.jl.

bkamins avatar Sep 19 '22 13:09 bkamins

ok, I see. It should in RollingFunctions.jl. so, I do the features/functions combination is good way.

zsz00 avatar Sep 19 '22 13:09 zsz00

I change the issue tag to improve manual.

bkamins avatar Sep 19 '22 13:09 bkamins