title: Numpy array to dataframe If using all scalar values, you must pass an index
body: <p>Hello trying to create a dataframe but I am getting this if scalar values must pass an index and I am not quite sure how to do that. I've tried a couple methods such as passing an index the length of the Y_test but it did not work.  Thanks </p>
  
  <pre><code>type(Y_test) = pandas.core.frame.DataFrame
  type(y_predict) =numpy.ndarray
  type(residuals) = pandas.core.frame.DataFrame
  
  dict3 = {'Test Values':Y_test,'Predictions':y_predict,'Error':residuals}
  df3 = pd.DataFrame(dict3)
  </code></pre>