title: How to select elements row-wise from a NumPy  array?
body: <p>I have an array like this numpy array</p>
  
  <pre><code>dd= [[foo 0.567 0.611]
       [bar 0.469 0.479]
       [noo 0.220 0.269]
       [tar 0.480 0.508]
       [boo 0.324 0.324]]
  </code></pre>
  
  <p>How would one loop through array
  selecting  foo and getting  0.567 0.611 as floats as a singleton. 
  Then select bar and getting  0.469 0.479 as floats as a  singleton .....</p>
  
  <p>I could get vector the first elements as list by using </p>
  
  <pre><code>dv=  dd[:,1]
  </code></pre>
  
  <p>The 'foo', and 'bar' elements are not unknown variables, they can change. </p>
  
  <p>How would I change if element is in position [1]?</p>
  
  <pre><code>[[0.567 foo2 0.611]
    [0.469 bar2 0.479]
    [0.220 noo2 0.269]
    [0.480 tar2 0.508]
    [0.324 boo2 0.324]]
  </code></pre>