title: Creating DataFrame in Pandas (Wrong Shape)
body: <p>I'm trying to create a DataFrame in Pandas with the following code:</p>
  
  <pre><code>df_coefficients = pd.DataFrame(data = log_model.coef_, index = X.columns, 
  columns = ['Coefficients'])
  </code></pre>
  
  <p>However, I keep getting the following error:</p>
  
  <p>Shape of passed values is (5, 1), indices imply (1, 5)</p>
  
  <p>The values and indices are as follows:</p>
  
  <p>Indices = </p>
  
  <pre><code>Index([u'Daily Time Spent on Site', u'Age', u'Area Income',
         u'Daily Internet Usage', u'Male'],
        dtype='object')
  </code></pre>
  
  <p>Values = </p>
  
  <pre><code>array([[ -4.45816498e-02,   2.18379839e-01,  -7.63621392e-06,
       -2.45264007e-02,   1.13334440e-03]])
  </code></pre>
  
  <p>How would I fix this? I've built the same type of table before and I've never gotten this error.</p>
  
  <p>Any help would be appreciated.</p>
  
  <p>Thanks</p>