Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

rename one dataframe column python

#suppy as dict the column name to replace
df1 = df.rename(columns={'Name': 'EmpName'})
print(df1)
Source by www.journaldev.com #
 
PREVIOUS NEXT
Tagged: #rename #dataframe #column #python
ADD COMMENT
Topic
Name
2+6 =