Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas change order of columns in multiindex

df.reindex(columns= df.columns.reindex(['IWWGCW', 'IWWGDW', 'BASE'], 
level = 0)[0])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pandas #change #order #columns #multiindex
ADD COMMENT
Topic
Name
3+5 =