Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

rename column in dataframe

df.rename({"current": "updated"}, axis=1, inplace=True)
print(df.dtypes)
Source by app.dataquest.io #
 
PREVIOUS NEXT
Tagged: #rename #column #dataframe
ADD COMMENT
Topic
Name
2+7 =