Python converting data frame to comma separated rows : <p>I have a pandas dataframe, call it df with 2 columns:</p>

<pre><code> user_id         result
   ---------      ---------
      12              0
      233             1
      189             0
</code></pre>

<p>And so forth. Is there an easy way to write this data frame out to a text file (with column headers removed) that just has comma-separated rows, i.e.,</p>

<pre><code>12, 0
233, 1
189, 0
</code></pre>

<p>Thanks.</p>
