title: How to convert string from df.to_string() back to DataFrame
body: <p>I know that DataFrame can be be converted to string using to_string function: </p>
  
  <pre><code>import pandas as pd
  df = pd.DataFrame({'A' : ['one', 'one', 'two', 'three'] * 3,
                     'B' : ['Aa', 'Bb', 'Cc'] * 4})
  dfstr = df.to_string()
  print(dfstr)
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>        A   B
  0     one  Aa
  1     one  Bb
  2     two  Cc
  3   three  Aa
  4     one  Bb
  5     one  Cc
  6     two  Aa
  7   three  Bb
  8     one  Cc
  9     one  Aa
  10    two  Bb
  11  three  Cc
  </code></pre>
  
  <p>How can I convert this <code>dfstr</code> back to a DataFrame object?</p>
  
  <hr>
  
  <p>Edit:</p>
  
  <p>I am asking specifically how the string created by <code>df.to_string()</code> function can be converted back to a dataframe object, not about general ways of converting text data (string) to dataframes as discussed on <a href="https://stackoverflow.com/questions/22604564/how-to-create-a-pandas-dataframe-from-a-string">How to create a Pandas DataFrame from a string</a> .</p>