79677145

Date: 2025-06-24 07:14:21
Score: 3.5
Natty:
Report link

Since corr applies to corresponding indices, why not

s.rolling(window=5, min_periods=lag+1).corr(s.shift(lag))

?

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Gabriella Chaos