I have a data-frame:
df = pd.DataFrame({'A': ['Target acc', 'Target acc', 'N'],
'B': ['Target acc', 'Target acc', 'N'],
'C': ['Target acc', 'N', 'N']})
I would like to return 'Yes' if the string 'Target acc' is present at least in of the columns (A,B,C), if no column contains the string I would like to return 'N'; The result would be:
How do I do it?
