title: Pandas : to_csv() got an unexpected keyword argument
body: <p>While I am trying to use some of the parameters in dataframe to_csv function, it throws an TypeError, such as `TypeError: to_csv() got an unexpected keyword argument 'doublequote'</p>
  
  <p><code>df.to_csv('transactions.x', header=False, doublequote=False)</code> 
  or 
  <code>df.to_csv('transactions.x', doublequote=False)</code></p>
  
  <p>My pandas version is 0.19.2 (Checked with <code>print(pd.__version__)</code>)
  I am using <code>Python 3.5</code></p>
  
  <p>The following official document is based on 0.19.2. Although, I am having type errors, it is stated that these parameters can be used as an optional. 
  <a href="http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.to_csv.html" rel="nofollow noreferrer">http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.to_csv.html</a></p>
  
  <p>Do you guys have any idea about it? </p>
  
  <p>Thank you.</p>
  
  <p><strong>SOLUTION</strong> </p>
  
  <p>Thanks for brain storming with all commenters. </p>
  
  <p>After using following the command <code>df = df.groupby(['Transactions'])['Items'].apply(','.join)</code>, dataframe becomes series. </p>
  
  <p>In order to cast series to dataframe, this command <code>df = df.groupby(['Transactions'])['Items'].apply(','.join).to_frame()</code> should be used instead. </p>
  
  <p>Finally, to export it as a CSV with non-quote style by avoiding escape char, you need to end up with the following command 
  <code>df.to_csv('transactions.x', header=False, quoting=csv.QUOTE_NONE, escapechar=' ')</code> #or whatever escapechar.</p>
  
  <p>Hopefully, it helps for everyone. 
  Thanks</p>