title: Assigning array new values from another array of different size
body: <pre><code>import numpy as np
  from math import *
  import pandas as pd
  prob = np.array([0.1,0.2,0.3,0.02,0.04,0.005,0.4,0.5,0.9,1.0])
  con = np.array([1,100,10,50,60,70,30])
  new = np.array(map(dict(zip(sorted(prob),sorted(con))).get,prob))
  print new
  [50 60 70 10 30 1 100 None None None]
  </code></pre>
  
  <p>I am trying to assign new values to my prob array using the con values. But there are less con values than prob values. I am wondering if it is possible to assign a con value to a prob value more than once? For example, I would want the output to look something like:</p>
  
  <pre><code>[30 30 50 1 1 1 50 60 70 100]
  </code></pre>
  
  <p>If not possible, would I just need to write a condition?</p>