I want to apply the function to Pandas, where UDF is assessing multiple strings,
I have tried the following, which works, but not ideal since if there is long list then one has to keep on adding OR statement.
def tran_cat(x): # if x['Desc'].str.contains('|'.join(["Coco", 'SAINSBURYS'])): if ("Coco" or 'SAINSBURYS') in x: return 1 else: return 0 z1['Tran_Cat']...