Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Pandas rename columns by position

df.rename(columns={ df.columns[1]: "your value" }, inplace = True)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Pandas #rename #columns #position
ADD COMMENT
Topic
Name
7+5 =