Relative Content

Tag Archive for pythonpandasdataframerolling-computation

Pandas hybrid rolling mean

I want to consider a window of size 3, in which I take the last value from the b column, and the other 2 values from the a column, like in this example: