title: Convert numpy.void to numpy.ndarray
body: <p>I have loaded a .csv file in python with <code>numpy.genfromtxt</code>. Now it returns a 1 dimensional <code>numpy.ndarray</code> with in that array, <code>numpy.void</code> objects which are actually just arrays of integers. However I would like to convert these from type<code>numpy.void</code> to <code>numpy.array</code>. To clarify:</p>
  
  <pre><code>&gt;&gt;&gt; print(train_data.shape)
  (42000,)
  &gt;&gt;&gt; print(type(train_data[0]))
  &lt;class 'numpy.void'&gt;
  &gt;&gt;&gt; print(train_data[0])
  (9, 0, 0)
  </code></pre>
  
  <p>So here the array (9, 0, 0) which has type <code>numpy.void</code> should be a <code>numpy.array</code>. </p>
  
  <p>How can I convert all values from <code>train_data</code> to be numpy arrays?</p>
  
  <p>Efficiency is also somewhat important because I am working with a lot of data.</p>
  
  <p>Some more code</p>
  
  <pre><code>&gt;&gt;&gt; with open('filename.csv, 'rt') as raw_training_data:
  &gt;&gt;&gt;     train_data = numpy.genfromtxt(raw_training_data, delimiter=',', names=True, dtype=numpy.integer)
  &gt;&gt;&gt; print(train_data.dtype)
  [('label', '&lt;i4'), ('pixel0', '&lt;i4'), ('pixel1', '&lt;i4')]
  &gt;&gt;&gt; print(type(train_data))
  &lt;class 'numpy.ndarray'&gt;
  </code></pre>