title: Why should one change the index name of a pandas dataframe?
body: <p>Is there any advantage to using another name for the index of a pandas DataFrame/Series? If I use <code>df[index_name]</code>, it doesn't work. Pandas <a href="https://pandas.pydata.org/pandas-docs/stable/advanced.html" rel="nofollow noreferrer">docs on MultiIndex</a> has an example where the indices have names, but the names are not used at all in slicing or selecting data. If you're not printing the dataframe, what's the use of changing the index name?</p>