📜  python - 为索引列命名 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:09.462000             🧑  作者: Mango

代码示例1
df.index.name                      # Show me the current name
df.index.name = 'my_column_name'   # Change the index name to my_column_name