Python Pandas Transpose Table DataFrame tanpa indeks
df = df.set_index("Col1").T
# "Col1" is the column you want to set as index.
Kwams
df = df.set_index("Col1").T
# "Col1" is the column you want to set as index.
df.T
df.head().T