0
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?

Talha Tayyab
  • 2,102
  • 9
  • 14
  • 25
Drizzle
  • 75
  • 5

0 Answers0