I have been struggling with this quite a bit, and was wondering if there is a solution for this.
I would like to use the range(start,stop,step) function in Python, but I would like to use a different order than what the normal functionalities allow. From what I understand the range function can do 3 things:
- 0, 1, 2, 3 etc
- 10, 9, 8, 7 etc
- 2, 4, 6, 8 etc
Now I am looking for the following order: 0, 10, 1, 9, 2, 8, 3, 7 etc
In this case 10 in the len(df), so the last row of the df.
rangefunction can't do this, it uses a fixed step size.