Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

drop index in multiindex pandas

>>> df.droplevel(1) #<-- Specify the level you want to drop

Source by pandas.pydata.org #
 
PREVIOUS NEXT
Tagged: #drop #index #multiindex #pandas
ADD COMMENT
Topic
Name
2+9 =