Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

add column as index pandas

df['new_col'] = range(1, len(df) + 1)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #column #index #pandas
ADD COMMENT
Topic
Name
7+2 =