擅长:python、mysql、java
<p>也许像这样的方法会奏效?</p>
<pre><code>>>> import numpy
>>> m = numpy.random.random(size=(1000,12))
>>> RD_EVAL = 7
>>> _max_rd = 0.9
>>> DUT_EVAL = 11
>>> _max_dut = 0.95
>>> cond_out = (m[:,RD_EVAL] > _max_rd) | (m[:,DUT_EVAL] > _max_dut)
>>> cond_out.shape
(1000,)
>>>
>>> norm = m[~cond_out, :]
>>> outliers = m[cond_out,:]
>>>
>>> norm.shape
(846, 12)
>>> outliers.shape
(154, 12)
</code></pre>
<p>请参阅<a href="http://docs.scipy.org/doc/numpy/reference/arrays.indexing.html#advanced-indexing" rel="nofollow">advanced indexing</a>上的文档。</p>