the usual way to implement it in numpy is `a.argsort().argsort()` which would translate to `a.posargsort(axis).posargsort(axis)` in larray for large 1D arrays, another technique is faster, but not sure it's worth it for now: https://gist.github.com/naught101/14042d91a2d0f18a6ae4#file-python_rank_benchmarking-py-L17
Activity
gdementen commentedon Sep 19, 2018
See:
https://docs.scipy.org/doc/scipy-0.16.0/reference/generated/scipy.stats.rankdata.html
https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.rank.html#pandas.DataFrame.rank
https://en.wikipedia.org/wiki/Ranking
for some background.