Search
 
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
Name
9+2 =