DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
rename column in pandas with second row
In [23]: df.columns = df.iloc[1]
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#rename
#column
#pandas
#row
ADD COMMENT
Topic
COMMENT
Name
1+2 =
Submit