擅长:python、mysql、java
<p>您可以使用熊猫<a href="https://pandas.pydata.org/pandas-docs/stable/text.html" rel="nofollow noreferrer">^{<cd1>} methods</a>,尤其是<a href="https://pandas.pydata.org/pandas-docs/stable/generated/pandas.Series.str.findall.html#pandas.Series.str.findall" rel="nofollow noreferrer">^{<cd2>}</a>:</p>
<pre><code>df['cars_mentioned'] = df['twitts'].str.findall('|'.join(list_of_car_makers))
</code></pre>