def get_features(config, data, datadir):
    """
    Get features from the feature list created during data generation / or the list specified during init_city.
    """

    cont_feat = config['cont_feat']
    cat_feat = config['cat_feat']

    # Dropping continuous features that don't exist
    cont_feat_found = []
    for f in cont_feat:
        if f not in data.columns.values:
            print("Feature " + f + " not found, skipping")
        else:
            cont_feat_found.append(f)

    # Dropping categorical features that don't exist
    cat_feat_found = []
    for f in cat_feat:
        if f not in data.columns.values:
            print("Feature " + f + " not found, skipping")
        else:
            cat_feat_found.append(f)

    # Create featureset holder
    features = cont_feat_found + cat_feat_found

    return cont_feat_found, cat_feat_found, features