Save pandas dataframe to disk work by row
<p>Pandas has <a href="http://pandas.pydata.org/pandas-docs/stable/io.html" rel="nofollow">many output formats</a>. Which of these is best suited for iteratively appending rows to a dataframe and having them written to disk immediately - so that if the program or machine crashes, the last computed row is still saved and the resulting data file is not corrupt?</p>

<p>I was unable to find examples for this functionality in the docstrings of the individual <code>to_*()</code> functions.</p>