at the moment I am setting my whole "name" column to lowercase with this line.
df["name"] = df["name"].str.lower()
My problem is however, that I only want to str.lower() the cells that do not contain the string "Foo" in them.
I tried the following but it doesn't work:
df["name"] = df["name"](lambda x: str(x) if "Foo" in str(x) else str.lower(x))
TypeError: 'Series' object is not callable