<p dir="auto">Unless I'm mistaken there's no official way of directly getting a string representation of a DataFrame.  I was using cPickle's dumps and loads functions for this, but upgrading from 0.19 to 0.20 broke things.  Yes, I could use Pandas' read_pickle and to_pickle functions as they are now and use the hard disk as an intermediate step, but this would hurt performance and seems unnecessarily roundabout. Having read_pickle and to_pickle optionally work with a string similar to cPickle's dumps and loads functions would be quite straightforward, no?</p>
<p dir="auto">brought up in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="23910357" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/5661" data-hovercard-type="pull_request" data-hovercard-url="/pandas-dev/pandas/pull/5661/hovercard" href="https://github.com/pandas-dev/pandas/pull/5661">#5661</a> , <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="25332462" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/5894" data-hovercard-type="pull_request" data-hovercard-url="/pandas-dev/pandas/pull/5894/hovercard" href="https://github.com/pandas-dev/pandas/pull/5894">#5894</a></p>