How to correctly write out a TSV file from a series in Pandas?
<p>I have read the manual <a href="http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.to_csv.html" rel="noreferrer">here</a> and saw <a href="https://stackoverflow.com/questions/21147058/pandas-to-csv-output-quoting-issue/21147228?noredirect=1#comment64220918_21147228">this</a> answer, but it is not working:</p>

<pre><code>&gt;&gt;&gt; import pandas as pd
&gt;&gt;&gt; import csv
&gt;&gt;&gt; pd.Series([my_list]).to_csv('output.tsv',sep='\t',index=False,header=False, quoting=csv.QUOTE_NONE)
    Traceback (most recent call last):
      File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    TypeError: to_csv() got an unexpected keyword argument 'quoting'
</code></pre>

<p>Without the quoting argument, it works. </p>

<pre><code>pd.Series([my_list]).to_csv('output.tsv',sep='\t',index=False,header=False)
</code></pre>

<p>But this is incompatible with my intended usage. </p>

<p>To make things even more confusing, when I wrote out a table this way, there were no quotes, and no errors:</p>

<pre><code>my_dataframe.to_csv('output2.tsv',sep='\t', quoting=csv.QUOTE_NONE)
</code></pre>

<p>Any idea what is going on?</p>