Getting index of numpy.ndarray
<p>I have a one-dimensional array of the type numpy.ndarray and I want to know the index of it's max entry. After finding the max, I used</p>

<pre><code>peakIndex = numpy.where(myArray==max)
</code></pre>

<p>to find the peak's index. But instead of the index, my script spits out</p>

<pre><code>peakIndex = (array([1293]),)
</code></pre>

<p>I want my code to spit out just the integer 1293. How can I clean up the output?</p>
