Introduction
np.vectorize() helps apply your own function to each item in an array easily. It makes your code simpler and faster to write.
You want to apply a custom math operation to every number in a list or array.
You have a function that works on single values but want to use it on whole arrays.
You want to avoid writing loops to process each element one by one.
You want to keep your code clean and easy to read when working with arrays.