def get_feature_names(factors_path):
    """
    Get feature names by reading header of factors csv

    Args:
        factors_path: path to factors csv with names of features as header

    Returns:
        list(str): list of column names read from file

    """
    with open(factors_path) as f:
        col_names = f.readline().split(',')
        col_names[-1] = col_names[-1].strip('\n')
    # Skip first field if empty (result of  to_csv(save_index=True))
    if not col_names[0]:
        return col_names[1:]
    else:
        return col_names