SyntaxFix
Write A Post
Hire A Developer
Questions
A simple solution without pandas:
import numpy as np def auto_corrcoef(x): return np.corrcoef(x[1:-1], x[2:])[0,1]