how to drop the title for data-frame columns

前端 未结 2 677
一向
一向 2021-01-25 06:52

I come up with a dataframe like this, I wonder how can we change or drop the \'id\' and \'date\' as they are just the names for index and columns.

id                 


        
2条回答
  •  滥情空心
    2021-01-25 07:10

    These variables are represented through the name property:

    df.columns.name = None
    df.index.name = None
    

提交回复
热议问题