Pandas has a df.rolling(N).apply(f) functionality that applies f to each column of df using a rolling window of size N. However, how can I apply a rolling function on the entire dataframe? That is, rather than f receiving each column of df one at a time, I would like all the columns to be passed to f like the way df.apply(f) would do.
Asked
Active
Viewed 33 times
1
Alex
- 18,593
- 36
- 118
- 187