22swer
22swer

Reputation: 21

python dataframe convert column to row

Attempting to convert a single dataframe column into a row. I've seen multiple responses to similar questions, but most of the questions pertain to multiple columns and rows. I can't find the simple solution to converting the following:

    value
0   A   
1   B  
2   C  
3   D  
4   E  
5   F  
6   G  
7   H  
8   I  
9   J  
10  K  
11  L

To

A B C D E F G H I J K L

Upvotes: 2

Views: 32493

Answers (1)

ode2k
ode2k

Reputation: 2723

To transpose the value dataframe

value1 = value.transpose()

Upvotes: 4

Related Questions