Reshaping Data with pivot_table, melt, and stack in pandas | Wicked Smart Data