24681, "ajpotts", "apply for python lambda functions", "2024-03-26T19:38:58Z"
Summary of Feature
Please add an apply method that can transform a distributed array by a python lambda function.
Description:
Is this a blocking issue with no known work-arounds?
Yes. Arkouda has been asked to develop a Series.apply method which would require this functionality. I realize this will be difficult (and potentially not feasible / will have to be limited in scope) since chapel is strongly typed and python is not.
Code Sample
const D = makeDistDom(3);
const arry1 : [D] int = [1, 2, 3];
apply(arry1, "lambda x: x+1");
Should return
[2, 3, 4]
makeDistDom is a helper function in akrouda which returns a block distributed domain.