DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python pandas transpose table dataframe without index
df = df.set_index("Col1").T # "Col1" is the column you want to set as index.
PREVIOUS
NEXT
Tagged:
#python
#pandas
#transpose
#table
#dataframe
#index
ADD COMMENT
Topic
COMMENT
Name
9+2 =
Submit