Search
 
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
Name
9+2 =