Interchange axes and swap values axes appropriately.
pandas.DataFrame.sum
pandas.DataFrame.swaplevel