NumPy | isalnum method
isalnum(~) method checks whether each string of the input array is alphanumeric. Note that this extends to other languages as well.
The input array.
a is a scalar, then a single boolean is returned. Otherwise, a Numpy array of booleans is returned.
np.char.isalnum(["aNz", "", "2f", "*e", "私"])array([ True, False, True, False, True])
Notice how 私, which is Chinese/Japanese, returned true.