title: IndexError: index 29 is out of bounds for axis 0 with size 29
body: <p>I'm working on Time series forecasting using the Transformers Model (Deep Learning). I am using code I pulled from github. When I run the code I'm always getting an error that says: IndexError: index 29 is out of bounds for axis 0 with size 29.<a href="https://i.stack.imgur.com/AvzbV.png" rel="nofollow noreferrer">code error</a></p>
  <p>Anyone can help me to solve this problem, I'm a beginner in this field.</p>
  <p>Thank you.</p>