Vectorized string manipulation with np.char: upper, lower, replace, and strip.
The `np.char` module provides vectorized string operations that execute string manipulations across arrays without Python for-loops.
`np.char.upper(names)` converts 100,000 text names to UPPERCASE in a single C-level loop.
`np.char` exposes standard string methods like `upper`, `lower`, `replace`, `split`, and `strip` as vectorized functions.
clean = np.char.strip(text_array)names.upper() # AttributeError: 'numpy.ndarray' has no attribute 'upper'np.char.upper(names)String methods live inside the `np.char` sub-module, not directly on the ndarray instance.
Solve the objective below using NumPy vectorized syntax
Create `arr = np.array(['numpy', 'python'])`, convert to uppercase with `np.char.upper(arr)`, and print.
['NUMPY' 'PYTHON']