擅长:python、mysql、java
<p>你可以做一个地图:</p>
<pre><code># get the count for each manufacturer
counts = carsDF.manufacturer.value_counts()
# threshold
thresh = 1000
# replace the manufacturer with the counts and thresholding
carsDF[carsDF.manufacturer.map(counts).ge(thresh)]
</code></pre>