DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
4+9 =
Submit