title: SyntaxError: invalid syntax | Prediction
body: <p>relatively new to python and trying to predict sales. I worked my way to this point in the process, and hit a wall. Please help if you can. what am I doing wrong? Btw, i'm working in python 3.</p>
  
  <p>Code:</p>
  
  <h1>reshape y_pred</h1>
  
  <pre><code>y_pred = y_pred.reshape(y_pred.shape[0], 1, y_pred.shape[1])
  </code></pre>
  
  <h1>rebuild test set for inverse transform</h1>
  
  <pre><code>pred_test_set = []
  for index in range(0,len(y_pred)):
      print np.concatenate([y_pred[index],X_test[index]])
  </code></pre>
  
  <p>pred_test_set.append(np.concatenate([y_pred[index],X_test[index]]))</p>
  
  <h1>reshape pred_test_set</h1>
  
  <pre><code>pred_test_set = np.array(pred_test_set)
  pred_test_set = pred_test_set.reshape(pred_test_set.shape[0], pred_test_set.shape[2])
  </code></pre>
  
  <h1>inverse transform</h1>
  
  <pre><code>pred_test_set_inverted = scaler.inverse_transform(pred_test_set)
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>File "&lt;ipython-input-259-19ec122fada5&gt;", line 7
      print np.concatenate([y_pred[index],X_test[index]])
             ^
  SyntaxError: invalid syntax
  </code></pre>