plt.figure() lag_plot(df['Open'], lag=3) plt.title('TESLA Stock - Autocorrelation plot with lag = 3') plt.show()