title: Convert Pandas DataFrame to & from In-Memory Feather
body: <p>Using the  <a href="http://pandas.pydata.org/pandas-docs/stable/io.html#io-feather" rel="noreferrer">IO tools in pandas</a> it is possible to convert a <code>DataFrame</code> to an in-memory feather buffer:</p>
  
  <pre><code>import pandas as pd  
  from io import BytesIO 
  
  df = pd.DataFrame({'a': [1,2], 'b': [3.0,4.0]})  
  
  buf = BytesIO()
  
  df.to_feather(buf)
  </code></pre>
  
  <p>However, using the same buffer to convert back to a DataFrame</p>
  
  <pre><code>pd.read_feather(buf)
  </code></pre>
  
  <p>Results in an error:</p>
  
  <blockquote>
    <p>ArrowInvalid: Not a feather file</p>
  </blockquote>
  
  <p><strong>How can a DataFrame be convert to an in-memory feather representation and, correspondingly, back to a DataFrame?</strong></p>
  
  <p>Thank you in advance for your consideration and response.</p>