I have an array of strings, and I'd like to take those strings and treat them each as boolean arrays corresponding to the alphabet (A-Z).
My goal is to do this in vectorized way and avoid any looping.
E.g.
Input:
A = np.array(['A'])
B = np.array(['AB'])
C = np.array(['AZ'])
D = np.array(['AZ','BAZ'])
Output:
A = np.array([1,0,0,0,...0])
B = np.array([1,1,0,0,...0])
C = np.array([1,0,0,0,...1])
D = np.array([[1,0,0,0,...1], [1,1,0,0,...1]])