title: How can I append a pandas Series to a DataFrame?
body: <p>I realize this question has been asked before, but none of those seem to work for me. I have a series called <code>state</code> that looks like:</p>
  
  <pre><code>cash          17378.787327
  num_shares      895.000000
  cost_basis      102.153149
  open_price      106.300003
  close_10        108.889999
  close_9         109.790001
  close_8         109.209999
  close_7         108.230003
  close_6         109.330002
  close_5         108.080002
  close_4         106.910004
  close_3         106.419998
  close_2         104.410004
  close_1         106.650002
  dtype: float64
  </code></pre>
  
  <p>I want to append it to a <code>DataFrame</code>, so I have:</p>
  
  <pre><code>X = pd.DataFrame()
  X.append(state)
  </code></pre>
  
  <p>But this gives an error <code>TypeError: Can only append a Series if ignore_index=True or if the Series has a name</code>, so I try:</p>
  
  <pre><code>X.append(state, ignore_index=True)
  </code></pre>
  
  <p>This doesn't actually append anything to <code>X</code>:</p>
  
  <pre><code>Empty DataFrame
  Columns: []
  Index: []
  </code></pre>
  
  <p>What am I doing incorrectly?</p>