import numpy as np
A = np.array([[1, 2], [3, 4], [5, 6], [7, 8]])
I know input A[2], I can get [5, 6].
When I input [5, 6], how to get the index of 2?
'numpy.ndarray' object has no attribute 'index'
How to get the index of ndarray?
import numpy as np
A = np.array([[1, 2], [3, 4], [5, 6], [7, 8]])
I know input A[2], I can get [5, 6].
When I input [5, 6], how to get the index of 2?
'numpy.ndarray' object has no attribute 'index'
How to get the index of ndarray?