def METHOD_NAME(dataframe):
    openfisca_variables = set(sum([list(value) for value in openfisca_variables_by_entity.values()], [])).union(set(["noindiv", "idmen_original"]))
    selected_variables = list(set(dataframe.columns).intersection(openfisca_variables))
    return dataframe[selected_variables]