Is this something that can be done cleanly in numpy without a for loop?
percentiles = np.array([50, 100])
data = np.array([[0, 1, 2, 3, 4], [10, 11, 12, 13, 14]])
I want the 50th percentile of [0, 1, 2, 3, 4]
and the 100th percentile of [10, 11, 12, 13, 14]
, not both the 50th and 100th of both.
Can this be done in an efficient way without for loops?
thanks