def _index_level_values(multi_index, level):
    """
    :param multi_index: the multi-index to select from
    :param level: the level number
    :return: the level values
    """
    return multi_index.get_level_values(level).unique()