I am trying to do a Pandas IF then Else statement in a new column. I couldn't find any questions where people used write in their own strings or "Yes"/"No".
Trying to do the following logic, If col A = Col B, then No Else Yes.
enterprisehr['Change_Dept'] = np.select([enterprisehr['Dept_Descr'] == enterprisehr['Old_Dept_Descr']], "No", "Yes")
I am getting this error: ValueError: list of cases must be same length as list of conditions
Should I be using numpy here to do this? How can I write my own values in, ie "No"/"Yes".
Sample Data /Expectation:
