title: Python - to_csv
body: <p>I am currently trying to write a dataframe to a csv using to_csv. The input and output for the data is below. How do I write the to_csv to ensure that the fields with commas still get double quoted but the row with Katie doesn't get additional double quotes?</p>
  
  <p>Input:  </p>
  
  <pre><code>Title  
  Johnny,Appleseed  
  Lauren,Appleseed  
  Katie_"Appleseed"
  </code></pre>
  
  <p>Output:  </p>
  
  <pre><code>Title  
  "Johnny,Appleseed"  
  "Lauren,Appleseed"  
  Katie_""Appleseed"" 
  </code></pre>
  
  <p>
  code </p>
  
  <pre><code>df.to_csv(r"filelocation", sep=',')
  </code></pre>