title: Assigning comma separated strings to an array of tuples - python, numpy
body: <p>Some shell escape command gives me:</p>
  
  <pre><code>a=!ls /cygdrive/s | grep "^Something6" | tr -d [A-Za-z] | sed "s/_.*$//" | sed "s/-/ /" | sed "s/ /,/"
  </code></pre>
  
  <blockquote>
    <p>['64,2014-04-01',
     '64,2014-04-02',
     '64,2014-04-03',
     '64,2014-04-04',
     '64,2014-04-07',
     '64,2014-04-07',
     '64,2014-04-08',
     '64,2014-04-09',
     '64,2014-04-11',
     '64,2014-04-14']</p>
  </blockquote>
  
  <p>The final goal is to put this into a database with the columns <code>version</code> and <code>date</code>.
  For intermediate experimenting I would like to put the array of strings
  into an array of tuples or into a dictionary without much copying around.</p>
  
  <p>Like:</p>
  
  <pre><code>version = np.empty(1,dtype=object_)
  date = np.empty(1,dtype=object_)
  version = a[1:]
  </code></pre>
  
  <p>But I need to split the string at the ','. How can this be achieved most elegantly with one gulp?</p>
  
  <p>The result should be something like:</p>
  
  <pre><code>(('64','2014-04-01'),
   ('64','2014-04-02'),
       etc.
       ...
  </code></pre>