I have a pandas.Dataframe
with the following columns:
a_1 ab_1 ac_1 a_2 ab_2 ac_2
2 3 4 5 6 7
How do I convert it into the following?
a ab ac
2 3 4
5 6 7
I was trying to use pandas melt to convert from wide to long format, but not sure of the syntax.