Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

.add_prefix to certain columns python

df.columns = ['f_' + i if ix < 15 else i for ix, i in enumerate(df.columns)]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #columns #python
ADD COMMENT
Topic
Name
5+6 =