Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas add prefix to column names

s.add_prefix('item_')
item_0    1
item_1    2
item_2    3
item_3    4
dtype: int64
Source by pandas.pydata.org #
 
PREVIOUS NEXT
Tagged: #pandas #add #prefix #column #names
ADD COMMENT
Topic
Name
4+2 =