擅长:python、mysql、java
<p>Pandas正在为此重写布尔<code>&</code>运算符。这应该起作用:</p>
<pre><code>pd_data = pd_data[(pd_data['db_rating']>0) & (pd_data['imdb_ratings_count']>1000)]
</code></pre>
<p>见<a href="http://pandas.pydata.org/pandas-docs/stable/indexing.html#boolean-indexing" rel="nofollow">http://pandas.pydata.org/pandas-docs/stable/indexing.html#boolean-indexing</a></p>