I have the following problem
I have a dataframe master that contains sentences, such as
master
Out[8]:
original
0
These answers are a little bit old. Some newer code:
dmaster = dd.from_pandas(master, npartitions=4)
dmaster['my_value'] = dmaster.original.apply(lambda x: helper(x, slave),meta=('x','f8'))
dmaster.compute(scheduler='processes')
Personally I'd ditch that apply call to fuzzy_score in the helper function and just perform the operation there.
You can alter the scheduler using these tips.