I have 2 data frames.
1st one has multiple strings, comma-delimited, per cell, 400k rows see this image 2nd data frame contains a single string per cell, 100k rows see the other image I want to check if the string in the 2nd data frame is in one of the cells of the 1st data frame and store the value in another column.
Absolutely this will take ages to run.
for i in range(100884):
for j in range(397767):
if df_old.iloc[i,3] in df_sfdc.iloc[j,0]:
df_old.iloc[i,4]="True"
print(i,j,"True")
else:
print(i,j,"False")