title: Using genfromtxt to import csv data with missing values in numpy
body: <p>I have a csv file that looks something like this (actual file has many more columns and rows):</p>
  
  <pre><code>1,2,3,4,5
  6,7,8,9,10
  11,12,13,14,15
  16
  </code></pre>
  
  <p>Say the name of the file is <strong>info.csv</strong>
  If I try to import this using </p>
  
  <pre><code>data = numpy.genfromtxt('info.csv', delimiter = ',')
  </code></pre>
  
  <p>then I get the following error:</p>
  
  <pre><code>ValueError: Some errors were detected ! Line #4 (got 1 columns instead of 5)
  </code></pre>
  
  <p>If I use,</p>
  
  <pre><code>data = numpy.genfromtxt('info.csv', delimiter = ',', skip_footer = 1) 
  </code></pre>
  
  <p>both lines with data <code>16</code> and with data <code>11, 12, 13, 14, 15</code> are skipped. I don't understand why the line with <code>11, 12, 13, 14, 15</code> is being skipped. I would appreciate any help on how I can appropriately use the <code>genfromtxt</code> to import first three lines in the above file.</p>
  
  <p>Thanks</p>