I want to upgrade my code since the algorithm takes 17hours to compute. I tried several methods but did not work. could you please suggest me any alternative of the code in order to save time?
%%time
# test algorithm1 - fuzzy
matched_pair = []
for x in dataset1['full_name_eng']:
for y in dataset2['name']:
if (fuzz.token_sort_ratio(x,y) > 85):
matched_pair.append((x,y))
print((x,y))
I am comparing names from 2 dataset columns and find the matched pair.