Setting a buffer of 0 in Pandas dataframe.to_csv
<p>Is there a way to set a buffer of '0' when using the Pandas dataframe.to_csv()?  I looked through the documentation and it appears to not allow that as an argument.  Am I overlooking something?</p>

<p>Edit:  I am asking because I am outputting dataframes which range in size from several hundred to many thousands of rows (always with the same 7 columns), and a later process that eventually examines the file is occasionally failing because sometimes it isn't finished being written.</p>

<p>I could of course introduce a delay (of 3-5 minutes), but I'd rather not arbitrarily slow down my code if I don't have to - I'd rather force the the code to wait for the completion of the output before moving on, and when writing files with open() it's nice to be able to set a buffer value of '0'.</p>