There are a few solutions to reverse the order of all columns here on SO like for example so:
df = df.iloc[:,::-1]
What I want to achieve is only reverse the order of columns starting from column 2 on, so I want to keep A and B in the same place and only reverse the order of the columns after that. As I have a couple of hundred columns and don't want to write the order manually.
My initial columns are:
| A | B | C | D | E | F |
|---|---|---|---|---|---|
And The Result I am looking for is:
| A | B | F | E | D | C |
|---|---|---|---|---|---|
Thanks!