Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

set index to column pandas

# method A
df = df.set_index('col')
# method B
df['col'] = df.index
 
PREVIOUS NEXT
Tagged: #set #index #column #pandas
ADD COMMENT
Topic
Name
6+8 =