Experiencing error when attempting to speed up with numba. Any other ways to speed up? Note "a" and "b" are pandas dataframe. I also have a gtx1070ti, any ways of utilising the gpu as well?
from difflib import SequenceMatcher
import time
z = []
x = []
st = time.time()
@jit
def calc_dist(a, b):
for i in a['name']:
for j in (b['name']):
cc = SequenceMatcher(None, i.lower(), j.lower()).ratio()
if cc > 0.8:
z.append(i)
x.append(j)
calc_dist(a, b)
en = time.time()
print(en-st)