python calculate average of previous rows for a certain company

前端 未结 0 1019
一向
一向 2020-11-30 20:08

I would like to calculate the 2-day average prc of a certain ticker in the data shown in the image below. I am aware of df.PRC.rolling(window=2).mean(), however

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