Jul-13-2019, 09:43 AM
I want to add a column and apply the above condition, I use below code but all rows fill with zeros.
df['Add']=df.loc[df['Status'].str.contains('pass', case=False), 'Status'] = 0