Concept Flow - stack() and unstack()
Start with DataFrame
Call stack()
Stacked Series with MultiIndex
Call unstack()
Original or reshaped DataFrame
stack() turns columns into rows creating a MultiIndex Series; unstack() reverses this by turning row levels back into columns.
