I hade a df of about 8M rows, I would like to each string value in `Data["title"]` to a list of string and see if the ratio is bigger than 80 in any case. If it is, return `1` else return `0`

The way I am doing it right now:

```
won = []
for title in tqdm(Data["title"]):
    ratio = []
    for wonTitle in titles["title"]:
        ratio.append(fuzz.ratio(title, wonTitle))
    tmp = [i >= 80 for i in ratio]
    if True in tmp:
        won.append(1)
    else:
        won.append(0)

```

Problem with this is that tqdm estimates it to take about 300 hours...

Edit:
=====

This solution got it down to about 80 hours.

```
def fuzzyCompare(title):
    return int(any(1 for wonTitle in titles["title"] if fuzz.ratio(title.lower(), wonTitle.lower()) >= 80))
Data["won"] = Data['title'].swifter.apply(fuzzyCompare)

```