np.percentile -> stats.scoreatpercentile