I am calling full_item()
for each element of a list size_DF
and passing some parameters to the function.
map(lambda x : object.full_item(sc, Database, len(x), end_date),size_DF)
map function is working but it is taking more time as list contains more elements.
I tried the multiprocessing but getting the error as below:
from multiprocessing import Pool
pool = Pool()
pool.map(lambda x : object.full_item(sc, Database, len(x), end_date),size_DF)
cPickle.PicklingError: Can't pickle : attribute lookup builtin.function failed
Please help and let me know how can i proceed.