Answers for "pandas remove multi column index"

21

drop multiple columns pandas

yourdf.drop(['columnheading1', 'columnheading2'], axis=1, inplace=True)
Posted by: Guest on May-16-2020
0

drop index in multiindex pandas

>>> df.droplevel(1) #<-- Specify the level you want to drop
Posted by: Guest on October-06-2021

Code answers related to "pandas remove multi column index"

Python Answers by Framework

Browse Popular Code Answers by Language