SyntaxFix
Write A Post
Hire A Developer
Questions
If you do not want to create a new row but simply put it in the empty cell then use:
df.columns.name = 'foo'
Otherwise use:
df.index.name = 'foo'