New answer for pandas 1.x, submitted by Ian Logie
df.columns.name = None
Old Answer from Oct 2018
Simply delete the name of the columns:
del df.columns.name
Also, note that df.index.names = [''] is not quite the same as del df.index.name.
df.columns.name = None
Simply delete the name of the columns:
del df.columns.name
Also, note that df.index.names = [''] is not quite the same as del df.index.name.