This is my actual requirement, and i tried to replicate in python by using either np.where(numpy) or logical operator(logical_and). but i got syntax error.
please help me to resolve the issues
Actual logic:
IF (AND ([Key] <> "", MATCHES ([Comments], "")), "To Be Assesed", IF ([Aging] = 0, "To Be Assesed", [Comments]))
Python Code:
logical_and:
Final_Output['Comments']= np.logical_and(Final_Output['Key']<>"",Final_Output['Comments']==""),"ToBeAssesed",np.where(Final_Output['Aging']=0,"ToBeAssesed",Final_Output['Comments'])
np.where:
Final_Output['Comments']= np.where((Final_Output['Key']<>'' , Final_Output['Comments']=''),'ToBeAssesed',np.where(Final_Output['Aging']=0,'ToBeAssesed',Final_Output['Comments']))
Thanks, Sabarinathan.C