Lets say I have a MultiIndex Series s:
s
>>> s values a b 1 2 0.1 3 6 0.3 4 4 0.7
and I want to apply a functi
Convert to DataFrame and apply along row. You can access the index as x.name. x is also a Series now with 1 value
DataFrame
x.name
x
Series
s.to_frame(0).apply(f, axis=1)[0]