If you want to stack the columns into rows in pandas, use DataFrame.stack().
DataFrame.stack()
My previous tips on pandas.