title: Pandas: Write CSV file with Windows line ending
body: <p>Example:</p>
  
  <pre><code>import pandas as pd
  df = pd.DataFrame({'A':[1,2], 'B':[3,4]})
  df.to_csv('test.csv', line_terminator='\r\n')
  </code></pre>
  
  <p>gives the file</p>
  
  <pre><code>,A,B\r
  \r\n
  0,1,3\r
  \r\n
  1,2,4\r
  \r\n
  </code></pre>
  
  <p>however, I would like to have</p>
  
  <pre><code>,A,B\r\n
  0,1,3\r\n
  1,2,4\r\n
  </code></pre>
  
  <p>How can I achieve this (i.e., <code>\r\n</code> instead of <code>\r\r\n</code>). My operating system is Windows 10.</p>