Iterate over numpy array
<p>Given the following array:</p>

<pre><code>x = np.array([[0,2,4,5,5.5,6,7],[4,5,6,7,2,3,4]])
</code></pre>

<p>Based on that array I need to create another array that skip the rows unit the value in the first column is >5.</p>

<p>So the result should like like this:</p>

<pre><code>([[5.5,6,7],[2,3,4]])
</code></pre>

<p>Any hints for a simple (and fast) method for that problem?
Thank you very much for your help!</p>

<p>Or the enumerate function:</p>

<pre><code>    res = []
    for i, _ in enumerate(x):
    res.append([])
    for j, val in enumerate(x[i]):
        if j &gt; 5:
            res[i].append(val)
</code></pre>

python numpy