I have a pandas data frame in which column A has values as lists. the size of the data frame is 14 million rows.
I have another list:
code = ['q23', 'r45', 'y67']
I want to create a new column B in the data frame if any of the values in column A are in code.
any([True if x in df.A if x in code]) doesnt work