table I have a data frame like above and wanted to re order the levels as below table 2
Asked
Active
Viewed 13 times
-1
-
Duplicate. It is answered here https://stackoverflow.com/questions/52046075/how-to-re-order-the-multi-index-columns-using-pandas – Nohman May 30 '22 at 10:27