stack() and unstack() (Pandas)

stack() moves a DataFrame's columns down into the row index, making the data taller and narrower.