python pandas.Series.str.contains WHOLE WORD
<p>df (Pandas Dataframe) has three rows.</p>

<pre><code>col_name
"This is Donald."
"His hands are so small"
"Why are his fingers so short?"
</code></pre>

<p>I'd like to extract the row that contains "is" and "small".</p>

<p>If I do</p>

<pre><code>df.col_name.str.contains("is|small", case=False)
</code></pre>

<p>Then it catches "His" as well- which I don't want.</p>

<p>Is below query is the right way to catch the whole word in df.series?</p>

<pre><code>df.col_name.str.contains("\bis\b|\bsmall\b", case=False)
</code></pre>