numpy.vectorize
numpy.frompyfunc
Return arrays with the results of pyfunc broadcast (vectorized) over args and kwargs not in excluded.