I have calculated a series of totals tips by day of a week and appended it to the bottom of totalspt dataframe.
totalspt
I have set the index.name f
index.name
You can use rename_axis. Since 0.17.0
rename_axis
0.17.0
In [3939]: df Out[3939]: XX A B 0 1 2 In [3940]: df.rename_axis(None, axis=1) Out[3940]: A B 0 1 2 In [3942]: df = df.rename_axis(None, axis=1) In [3943]: df Out[3943]: A B 0 1 2