Python Pandas: Check if string in one column is contained in string of another column in the same row : <p>I have a dataframe like this:</p>

<pre><code>RecID| A  |B
----------------
1    |a   | abc 
2    |b   | cba 
3    |c   | bca
4    |d   | bac 
5    |e   | abc 
</code></pre>

<p>And want to create another column, C, out of A and B such that for the same row, if the string in column A is contained in the string of column B, then C = True and if not then C = False.</p>

<p>The example output I am looking for is this:</p>

<pre><code>RecID| A  |B    |C 
--------------------
1    |a   | abc |True
2    |b   | cba |True
3    |c   | bca |True
4    |d   | bac |False
5    |e   | abc |False
</code></pre>

<p>Is there a way to do this in pandas quickly and without using a loop? Thanks</p>
