I have the following DataFrame:
| userId | column_1 | column_2 | column_3 |
|---|---|---|---|
| A | 4.959 | 3.231 | 1.2356 |
| B | 0.632 | 0.963 | 2.4556 |
| C | 3.234 | 7.445 | 5.3435 |
| D | 1.454 | 0.343 | 2.2343 |
I would like to argsort w.r.t columns from the previous one:
| userId | first | second | third |
|---|---|---|---|
| A | column_3 | column_2 | column_1 |
| B | column_1 | column_2 | column_3 |
| C | column_1 | column_3 | column_2 |
| D | column_2 | column_1 | column_3 |