How can I determine the row with the highest value in index=0 even if index=1 is a character?
I have an array of lists with two positions, where the first position is a number and the second position is a character.
A=np.array([[150,"A"],[9,1],[9,14]])
B=np.argmax(A, axis=0)
I should receive this:
[0 2]
But I get this:
[1 0]
I am not sure what the output for the seconde position is but for the first position it should be 0. What did I get wrong about the function? Even slicing did not work out.