title: Getting an error during reshaping the dataframe
body: <p>My code is:</p>
  <pre><code>last_steps = valid[['Close']].tail(60)
  last_values = np.reshape(last_steps, ( -1, last_steps.shape[1], last_steps.shape[2]))
  </code></pre>
  <p>The second line rises this error:</p>
  <pre><code>IndexError                                Traceback (most recent call last)
  C:\Users\UTKARS~1\AppData\Local\Temp/ipykernel_8696/2291656061.py in &lt;module&gt;
        1 last_steps = valid[['Close']].tail(60)
  ----&gt; 2 last_values = np.reshape(last_steps, ( -1, last_steps.shape[1], last_steps.shape[2]))
  
  IndexError: tuple index out of range
  </code></pre>