title: Storing Pandas dataframe in working memory
body: <p>Is there some way to take a dataframe, say,</p>
  
  <pre><code>df = pd.DataFrame({'a':[1,2,3], 'b':[4,5,6]})
  </code></pre>
  
  <p>and store it in temp memory as a binary object that can then be opened with </p>
  
  <pre><code>open(df, 'rb')
  </code></pre>
  
  <p>So then, rather than do something like </p>
  
  <pre><code>open('/home/user/data.csv', 'rb')
  </code></pre>
  
  <p>the code would be </p>
  
  <pre><code>df = pd.DataFrame({'a':[1,2,3], 'b':[4,5,6]})
  
  df_rb = *command to store in temp working memory as binary readable*
  
  open(df_rb, 'rb')
  </code></pre>