Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

df rename columns

df.rename(columns = {'col1':'new_name', 'col2':'newcol2',
                              'col3':'newcol3'}, inplace = True)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #df #rename #columns
ADD COMMENT
Topic
Name
3+4 =