How to use pd.read_table with StringIO file object?
<p>I checked out <a href="https://stackoverflow.com/questions/18383711/read-table-with-stringio-and-messy-file">read_table with stringIO and messy file</a> but it has some stuff I can't reproduce like this raw object.  Anyways, I want to write a table to a <code>StringIO</code> file object and then open that <code>StringIO</code> file object in <code>pandas</code> with the <code>read_table</code> method but I am getting <code>EmptyDataError: No columns to parse from file</code>.  The file I will be writing to will be too large to store in memory so I want to read it in chunks.  Using <code>StringIO</code> as a test example. Using Python 3.5.1 btw</p>

<pre><code>import numpy as np
import pandas as pd
from io import StringIO

#StringIO to write to
f = StringIO()

#Write to StringIO
dist = np.random.normal(100, 30, 10000)
for idx,s in enumerate(dist):
    f.write('{}\t{}\t{}\n'.format("label_A-%d" % idx, "label_B-%d" % idx, str(s)))

#Pandas DataFrame from it
DF = pd.read_table(f,sep="\t",header=None)
#EmptyDataError: No columns to parse from file
</code></pre>