DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
renaming multiple columns in pandas
[df.rename(columns={df.columns[j]: COLUMNS[j]}, inplace=True) for j in range(df.shape[1])]
PREVIOUS
NEXT
Tagged:
#renaming
#multiple
#columns
#pandas
ADD COMMENT
Topic
COMMENT
Name
3+9 =
Submit