DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
7+5 =
Submit