def extract_appendix_from_fname(fname):
    """
    Isolate only the appendix, starting from a full fname

    :param fname:
    :return:
    """

    idx_start_pattern = fname.find('q_')
    idx_end_pattern = fname.find('.csv')
    appendix = fname[idx_start_pattern:idx_end_pattern]
    return appendix