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