Yes, you can achieve the desired results using the NumPy np.vectorize method in conjunction with a lambda function. The code snippet below demonstrates the implementation of this method.
In the above example we import the NumPy library with the alias np.
Initializes a NumPy array arr.
Defines a logarithm base 10 function using a lambda function and the np.vectorize function.
Applies the vectorized logarithmic function to the arr array.
Then finally prints the resulting array after applying the logarithmic function.