title: CSV read error: new-line character seen in unquoted field
body: <p>I created a python script which works with a test CSV dataset of 10 records. When I scaled this up to the actual datasets (a few thousand rows), I am getting the following error:</p>
  
  <blockquote>
    <p>_csv.Error: new-line character seen in unquoted field - do you need to open the file in universal-newline mode?</p>
  </blockquote>
  
  <p>The code is as follows:</p>
  
  <pre><code>with open('./Origins.csv', 'r') as csvfile:
      reader = csv.DictReader(csvfile)
      origincoords = ['{Y},{X}'.format(**row) for row in reader]
  </code></pre>
  
  <p>The full error code is:</p>
  
  <pre class="lang-none prettyprint-override"><code>Traceback (most recent call last):
    File "./Driving.py", line 14, in &lt;module&gt;
      origincoords = ['{Y},{X}'.format(**row) for row in reader]
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/csv.py", line 103, in next
      self.fieldnames
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/csv.py", line 90, in fieldnames
      self._fieldnames = self.reader.next()
  _csv.Error: new-line character seen in unquoted field - do you need to open the file in universal-newline mode?
  </code></pre>
  
  <p>Perhaps there is a scale problem with the CSV reading method I am using?</p>