target_mapping = target_mapping[ target_mapping[attr] .apply(normalize_for_matching) .isin(values) ]