Sorry for the title as it is confusing. I have a pandas dataframe as below.
date A B
jan 1 4 5
jan 2 6 8
... ... ...
What I wanted to do is transpose the dataframe (which I know df.T) and also needed the resulting dataframe to look like below
col1 date value
A jan 1 4
A jan 2 6
B jan 1 5
B jan 2 8
Please advice and thank you in advance