title: Pandas .to_csv(fileName, quoting=csv.QUOTE_NONE ERRORTypeError: to_csv() got an unexpected keyword argument 'quoting'
body: <p>Attempting to write a data frame to csv using pandas and remove quotes produced by a concatenated value. The interpreter is not accepting the argument quoting.</p>
  
  <p>ERROR</p>
  
  <blockquote>
    <p>TypeError: to_csv() got an unexpected keyword argument 'quoting'</p>
  </blockquote>
  
  <p>CODE</p>
  
  <p>concatenation producing double quote in value:</p>
  
  <pre><code>df['NAME'] = df[['Last', 'First']].apply(lambda x: ", ".join(x), axis =1)
  
  df2 = df[['NAME']].copy()
  
  df2.stack().reset_index(level=0, drop=True).to_csv(_testFileout, quoting=csv.QUOTE_NONE)
  </code></pre>
  
  <p>OUTPUT(Without quoting argument): </p>
  
  <pre><code>2,"LAST, FIRST" 
  </code></pre>
  
  <p>DESIRED OUTPUT:</p>
  
  <pre><code>2,LAST, FIRST
  </code></pre>
  
  <p>Written to file</p>
  
  <p>Versions:</p>
  
  <p>PYTHON 3.6.4</p>
  
  <p>PANDAS 0.22.0</p>
  
  <p>COMPLETED CODE</p>
  
  <p>import pandas as pd</p>
  
  <p>_testFile = 'G:\SOMEFILEPATH.csv'</p>
  
  <p>_testFileout = 'G:\ANOTHERPATH.txt'</p>
  
  <p>df = pd.read_csv(_testFile, encoding='utf-8')</p>
  
  <p>df['1'] = '*'</p>
  
  <p>df['2'] = df[['Last', 'First']].apply(lambda x: ", ".join(x), axis =1)</p>
  
  <p>df['45'] = df['userid']</p>
  
  <p>df['50'] = '2'</p>
  
  <p>df['75'] = '1'</p>
  
  <p>df['150'] = df['First']+'.'+df['Last']+'@xxxx.com'</p>
  
  <p>df['2401'] = 'Document Imaging'</p>
  
  <p>df['2402'] = df['userid']</p>
  
  <p>df['2403'] = 'imagelater'</p>
  
  <p>df['2405'] = 'Yes'</p>
  
  <p>df['20700'] = '201'</p>
  
  <p>df['20701'] = '000' + df['employeeID'].astype(str)</p>
  
  <p>df2 = df[['1', '2', '45', '50', '75', '150', '2401', '2402', '2403', '2405', '20700','20701']].copy()</p>
  
  <p>df2.stack().reset_index(level=0, drop=True).to_csv(_testFile, quoting=csv.QUOTE_NONE)</p>
  
  <p><strong>NEW CODE</strong></p>
  
  <p><strong>df2.stack().reset_index(level=0,drop=True).to_frame().to_csv(_testFileout, quoting=3, escapechar="\r")</strong></p>