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
Source by # #
 
PREVIOUS NEXT
Tagged: #set #index #column #pandas
ADD COMMENT
Topic
Name
3+9 =