擅长:python、mysql、java
<p>使用<a href="http://pandas.pydata.org/pandas-docs/version/0.17/generated/pandas.DataFrame.apply.html" rel="nofollow noreferrer">^{<cd1>}</a></p>
<pre><code>df['cars_mentioned'] = df['twitts'].apply(lambda x: [c for c in list_of_car_makers if c in x])
</code></pre>