python replace string in column code example Example: column.replace df.column = df.coloumn.replace('old_value', 'new_value')