pandas can’t remove the column name from the index column

It will work, you can try assign it back ,also it is column name not index name

df = df.rename_axis(None, axis="columns")

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top