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