Suppose I have a dataframe of multi-index columns,
TSLA MSFT
Year revenues other_revenues expenses revenues other_revenues expenses
2019 851 10 110 200 13 213
2018 725 11 111 150 14 214
How can I add the inner columns to obtain
TSLA MSFT
Year revenues other_revenues expenses sum revenues other_revenues expenses sum
2019 851 10 110 971 200 13 213 426
2018 725 11 111 847 150 14 214 378
Secondly, in general what are the common functions I should note when working with multi-index columns? Is there a way of thinking when working with multi-index columns? I'm comfortable thinking in normal (single leveled index) but not used to multi-index. Thanks!