title: Why doesn't the line number match the actual number in csv file?
body: <p>I have a file with such lines:</p>
  
  <pre><code>$ wc -l ../data/raw_data/query.ws.csv 
   2000096 ../data/raw_data/query.ws.csv
  </code></pre>
  
  <p>However, when I read the csv file and count the lines, it doesn't match:</p>
  
  <pre><code>line_number = 0
  with open(filename) as cfile:
      csv_file = csv.reader(cfile)
  
      for row in csv_file:
          line_number += 1
  
  logger.info("Total lines: {}".format(str(line_number)))
  </code></pre>
  
  <p>The log info:</p>
  
  <pre><code>wbnp - INFO - 64 - Total lines: 1366330
  </code></pre>
  
  <p>Why isn't it equal 2000096? I checked in vim and found it doesn't contain any blank lines.</p>