When I try to read each element in a column of Dataframe, I cannot use replace to change a old substring into a new substring, the text will have the same value after using replace.
for index, row in df.iterrows():
    text = row['r.name']
    print(type(text))
    for token in row['main_ingreds'].split(','):
        text.replace(token, " ")
 
    