Let say I have a numpy array A as follows:
A =
array([[0, 2],
[1, 2],
[0, 1]])
I created a boolean array B using np.zeros as follows
B =
array([[False, False, False],
[False, False, False],
[False, False, False]])
Now, I wanted to create an array C, where it gives True value based on the column index of A.
So,
C =
array([[True, False, True],
[False, True, True],
[True, True, False]])