title: Apply scipy scoreatpercentile for each list in array
body: <p>Assuming to have an array like this:</p>
  <pre><code>a = np.array([[10,  3,  7,  1,  3,  3],
         [ 7,  2,  4,  2,  4,  6],
         [ 4,  1,  9,  3,  5,  7]])
  </code></pre>
  <p><code>scipy.stats.scoreatpercentile</code> or <code>numpy.percentile</code> would allow me to get the percentiles for each element of an array:</p>
  <pre><code>from scipy import stats
  test = stats.scoreatpercentile(a_transposed, 50, axis=1)
  print (test)
  
  # Output: [3.  4.  4.5]
  
  </code></pre>
  <p>For me it is even more interesting to get the score of a percentile. Therefore I would use <code>scipy.stats.percentileofscore</code> but this ('reverse')function is not applicable to this type of array since it does not take an axis-parameter like the related <code>scipy.stats.scoreatpercentile</code>. Is there any other smooth way to apply this function for each element of the array?</p>