Replies: 1 comment 1 reply
-
Or framed another way, I don't want the ranks to be the same:
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.rank.html |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Goal: for each row, find duplicates and then for the first duplicate, keep as is, second duplicate, subtract 1, third duplicate subtract 2, and so on.

Ideally, it would be nice to find a way to vectorize this.
Beta Was this translation helpful? Give feedback.
All reactions