Pandas benennen den Index um
df.index = df.index.rename('new_index_name')
# Source: https://pandas.pydata.org/docs/reference/api/pandas.Index.rename.html
D Goglia
df.index = df.index.rename('new_index_name')
# Source: https://pandas.pydata.org/docs/reference/api/pandas.Index.rename.html
df.index.name # Show me the current name
df.index.name = 'my_column_name' # Change the index name to my_column_name
df.rename(index={'alpha': 'mu'})