Explain np.vectorize and clarify whether it provides a performance speedup or is primarily for convenience.
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks what np.vectorize does when it wraps a scalar Python function and whether it makes NumPy code faster. Tests your understanding of where element-wise work runs, how true ufuncs differ, and the output dtype pitfall of vectorize.