title: Repeating each element of a numpy array 5 times
body: <pre><code>import numpy as np
  
  data = np.arange(-50,50,10)
  print data
  
  [-50 -40 -30 -20 -10   0  10  20  30  40]
  </code></pre>
  
  <p>I want to repeat each element of data 5 times and make new array as follows:</p>
  
  <pre><code>ans = [-50 -50 -50 -50 -50 -40 -40 ... 40]
  </code></pre>
  
  <p>How can I do it?</p>
  
  <p>What about repeating the whole array 5 times?</p>
  
  <pre><code>ans =  [-50 -40 -30 -20 -10   0  10  20  30  40 -50 -40 -30 -20 -10   0  10  20  30  40 -50 -40 -30 -20 -10   0  10  20  30  40 -50 -40 -30 -20 -10   0  10  20  30  40 -50 -40 -30 -20 -10   0  10  20  30  40 .......]
  </code></pre>