processParallel(fileFrame, processorFunc, initializer=None, initArgs=None, procArgs=None, numProcesses=None)¶
A convenience function to process the rows of a pandas DataFrame in parallel
DataFrame) – A dataframe. Each row of the frame will be passed as the first argument to the processorFunc.
Any]) – A function that each row number and row of the fileFrame should be passed to as the first and second argument respectively. Additional arguments can be passed to processorFunc using the procArgs variable. The function should return the value which you want included in the return of processParrallel.
Tuple]) – Optional arguments to pass to processorFunc
Callable]) – A function that is run once at the beginning of each spawned process. Can be used for copying shared memory.
Tuple]) – A tuple of arguments to pass to the initializer function.
- Return type
List containing the results of each execution of processorFunc.