Replace strings in a Pandas Dataframe column using Python

  pandas, python, regex

I am trying to replace a string with a different one in a specific column of a Dataframe, but the code does not seem to be working as the column values are unchanged after running the script in Python:

df['column name'].replace(to_replace=r'Kölsch', value='Kolsch', regex=True, inplace=True)

Source: Python Questions

LEAVE A COMMENT