DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
3+5 =
Submit