I have a pandas dataframe, and whenever the classification column is 1, I want to add the string "black" to it. This is what my dataframe is right now:
Explanation Classification:
blue, red, pink 1
green, red 0
yellow, purple 0
red 1
and this is what I want:
Explanation Classification:
blue, red, pink, black 1
green, red 0
yellow, purple 0
red, black 1
please help!