Code: Alles auswählen
def replace_multiple(target, search_this, replace_with):
for letter in search_this:
target = target.replace(letter, replace_with)
return target
df['first_name'] = df.apply(lambda row: replace_multiple(target=row['first_name'], search_this="ßẞ", replace_with='SS'), axis=1)
df['last_name'] = df.apply(lambda row: replace_multiple(target=row['last_name'], search_this="ßẞ", replace_with='SS'), axis=1)
LG und danke.