pandas rolling window that includes 'n' preceding rows and 'm' following rows

后端 未结 0 1494
深忆病人
深忆病人 2020-12-31 06:33

In pandas, how can I write a rolling window that has preceding as well as following rows?

for example, a sql rolling window can be written as follows:

         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题