how to do forward and backward rolling at the same time in pandas?

前端 未结 0 930
春和景丽
春和景丽 2020-12-28 21:54

I need to check if the current value is higher than the next two and the previous three values. Otherwise, it passes the previous number.

Ex:

| date            


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