Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas multiindex to single index

df.columns = df.columns.get_level_values(0)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pandas #multiindex #single #index
ADD COMMENT
Topic
Name
1+6 =