Search
 
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
Name
3+9 =