11.5.8.9. map_multiindex_take_last_if_tuple

map_multiindex_take_last_if_tuple(mi)[source]

For each label in a (Multi)Index, if that label is a tuple, replace it with its second element. Works for both Index and MultiIndex.