DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
how to swirtch the placement of the levels in pandas
df.swaplevel('col_3','col_1',axis='index') # index = 0, columns = 1 for axis.
PREVIOUS
NEXT
Tagged:
#swirtch
#placement
#levels
#pandas
ADD COMMENT
Topic
COMMENT
Name
9+2 =
Submit