def strip_suffix(name, split='_'):
    """
    Returns the portion of name minus the last element separated by the splitter character
    :param name: str, name to strip the suffix from
    :param split: str, split character
    :return: str
    """
    if not name.count(split):
        return name
    return name.replace(split + name.split(split)[-1], '')
