pandas.Index.name#

property Index.name[source]#

Return Index or MultiIndex name.

Examples

>>> idx = pd.Index([1, 2, 3], name='x')
>>> idx
Index([1, 2, 3], dtype='int64',  name='x')
>>> idx.name
'x'