ten.dist_apply(columns,fun,args)

Return a list of the return values for each call to the function object. This is the Python function used to disseminate Python code to all sub-processes.

Syntax

ten.dist_apply(columns,fun,args)

Arguments

columns
A list of strings that represents a list of the columns that will be accessed at the sub-processes.
fun
A function object that is the function to be applied on the relevant segments. In order to retrieve column data at the sub-processes, fun has access to ten.get.
args
The argument passed to fun at the sub-processes.

Returns

A list of the return values for each call to fun. The list length will be equal to the number of segments.