I\'m not 100% if using apply + functools.reduce is the best approach for this problem, but I\'m not sure exactly if multi-indices can be leveraged
apply
functools.reduce