title: How to substitute values from array to values in list in Python?
body: <p>I have an array (of numpy.ndarray type) like</p>
  
  <pre><code>arr=array([[1, 5, 1],
            [4, 2, 0]])
  </code></pre>
  
  <p>and a list of values:</p>
  
  <pre><code>values=['father','mother','sister','brother','aunt','uncle']
  </code></pre>
  
  <p>And I'd like to substitute numbers in array <strong>arr</strong> with items from list <strong>values</strong> using array's items as indices of list values:<code>arr[0,0]=values[arr[0,0]]</code></p>
  
  <p>Here an example of what I'd like to have</p>
  
  <pre><code>arr=array([['mother', 'uncle', 'mother'],
             ['aunt', 'sister', 'father']])
  </code></pre>
  
  <p>Is there any elegant pythonic way to do this?</p>
  
  <p>Thanks for helping in advance =)</p>