Trouble with exercise 17 (advanced)
Hi there,
I am facing an error when submitting my code that I don’t understand.
It is asked to use the following function to get the indices of a min of a 2D array (to print it as the final result) :
We are working on a symetric array so there are 2 mins obviously. Meanwhile the np.argmin returns the first min on an array, even if there are more than one. Hence the unravel_index function uses it to return only one (pair of) index.
And I have the following error, where I understand that I should get a list of 2 pairs of indices and not one as I get.
How can I do it with the argmin function ?
Thanks for your help!