title: Python - pandas - Append Series into Blank DataFrame
body: <p>Say I have two pandas Series in python:</p>
  
  <pre><code>import pandas as pd
  h = pd.Series(['g',4,2,1,1])
  g = pd.Series([1,6,5,4,"abc"])
  </code></pre>
  
  <p>I can create a DataFrame with just h and then append g to it:</p>
  
  <pre><code>df = pd.DataFrame([h])
  df1 = df.append(g, ignore_index=True)
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>&gt;&gt;&gt; df1
     0  1  2  3    4
  0  g  4  2  1    1
  1  1  6  5  4  abc
  </code></pre>
  
  <p>But now suppose that I have an empty DataFrame and I try to append h to it:</p>
  
  <pre><code>df2 = pd.DataFrame([])
  df3 = df2.append(h, ignore_index=True)
  </code></pre>
  
  <p>This does not work.  I think the problem is in the second-to-last line of code.  I need to somehow define the blank DataFrame to have the proper number of columns.</p>
  
  <p>By the way, the reason I am trying to do this is that I am scraping text from the internet using requests+BeautifulSoup and I am processing it and trying to write it to a DataFrame one row at a time.</p>