title: AttributeError- 'numpy.ndarray' object has no attribute 'index'
body: <p>I keep getting this error message:</p>
  <pre><code>newmaxleft=cl1count.index(max(cl1count))
  AttributeError: 'numpy.ndarray' object has no attribute 'index'
  </code></pre>
  <p>The purpose of the code is to find the first occurrents of the column with the largest amount of white pixels.</p>
  <p>My Code:</p>
  <pre><code>cl = cl[top:bottom, left:right]
              cl1mask = np.uint8(np.where(cl == 0, 0, 1))
              cl1count = cv2.reduce(cl1mask, 0, cv2.REDUCE_SUM, dtype=cv2.CV_32SC1)
              cl1count.flatten().tolist()
              newmaxleft=cl1count.index(max(cl1count))
  </code></pre>