Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas rename index

df.index = df.index.rename('new_index_name')

# Source: https://pandas.pydata.org/docs/reference/api/pandas.Index.rename.html
 
PREVIOUS NEXT
Tagged: #pandas #rename #index
ADD COMMENT
Topic
Name
9+6 =