Top "Rolling-computation" questions

A rolling computation is a computation applied to a moving window.

How to calculate rolling / moving average using NumPy / SciPy?

There seems to be no function that simply calculates the moving average on numpy/scipy, leading to convoluted solutions. My …

python numpy time-series moving-average rolling-computation
Python - rolling functions for GroupBy object

I have a time series object grouped of the type <pandas.core.groupby.SeriesGroupBy object at 0x03F1A9…

python pandas pandas-groupby rolling-computation rolling-sum
Consecutive/Rolling sums in a vector in R

Suppose in R I have the following vector : [1 2 3 10 20 30] How do I perform an operation whereby at each index 3 consecutive elements …

r rolling-computation rolling-sum
Query for count of distinct values in a rolling date range

I have a data set of email addresses and dates that those email addresses were added to a table. There …

sql postgresql date count rolling-computation
the rolling regression in R using roll apply

My imported data contains 7 variables: Y and X1, X2, X3, X4, X5, X6. I tried applying the rollapply function in …

r rollapply rolling-computation
Pandas rolling apply using multiple columns

I am trying to use a pandas.DataFrame.rolling.apply() rolling function on multiple columns. Python version is 3.7, pandas is 1.0.2. …

python pandas dataframe rolling-computation
Python pandas: apply a function to dataframe.rolling()

I have this dataframe: In[1]df = pd.DataFrame([[1,2,3,4,5],[6,7,8,9,10],[11,12,13,14,15],[16,17,18,19,20],[21,22,23,24,25]]) In[2]df Out[2]: 0 1 2 3 4 0 1 2 3 4 5 1 6 7 8 9 10 2 11 12 13 14 15 3 16 17 18 19 20 4 21 22 23 24 25 I need to achieve this: for every rows in …

python pandas rolling-computation
Filtering out outliers in Pandas dataframe with rolling median

I am trying to filter out some outliers from a scatter plot of GPS elevation displacements with dates I'm trying …

pandas median outliers rolling-computation