I have a df
that looks like this
a b c
c1 c2
0 87 33 32 34
1 32 10 45 62
2 78 83 99 71
I'd like to drop the c
level but keep all the other column names
a b c1 c2
0 87 33 32 34
1 32 10 45 62
2 78 83 99 71
df.columns = df.columns.droplevel(0)
works but the names of a
and b
disappear
c1 c2
0 87 33 32 34
1 32 10 45 62
2 78 83 99 71