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