Suggestion: percentile ranks · Issue #5971 · pandas-dev/pandas (original) (raw)
I realize I am computing percentile ranks constantly in my code.
df["pct_rank"] = df["field"].groupby("date").transform(lambda x: x.rank(ascending=False) / float(x.count()))
Would anyone have any use for a function that is computed in cython for this?
if so, would people prefer to it to be a separate function or an option in rank?