I would like to transform values of a multiindex using a function which requires a list as input, is expensive to use.
def