def _data_header(cols, parent_dict):
    """Constructs a header row for the worksheet based on the columns in the table and contents of the parent row"""
    out = []
    for col in cols:
        if col == 'gau_id':
            out.append(parent_dict['geography_id'])
        elif col == 'oth_1_id':
            out.append(parent_dict['other_index_1_id'])
        elif col == 'oth_2_id':
            out.append(parent_dict['other_index_2_id'])
        else:
            out.append(col)
    return out