Question: Given DataFrame b, how can I replace the values of multiple columns, with one value, through boolean mask column identification?
What works, but I don't want:
b.iloc[:, 2:6] = "someConstantValue"
What doesn't work, but I want:
b.iloc[:, 2:6][b["columnA"] == "someCondition"]] = "someConstantValue"
Thanks for your time!