I'm trying to do some multiprocessing in python and have a problem with datatypes getting changed while using Pool.starmap. See snippet below:
import multiprocessing as mp
from itertools import repeat
with mp.Pool(3) as pool:
pool.starmap(some function, zip([np.array, np.array], repeat(pd.dataframe)))
Before passing the np.array to the the function it is something like:
['some string', some int, some float, 'some string']
But after passing it somehow gets formatted to:
['some string', 'some string', 'some string', 'some string']
Has anyone experienced similar problems so far? Cheers