title: how to perform row by row operation in pandas
body: <p>I have a dataframe with two columns,  <code>last_name</code> and <code>description</code></p>
  
  <p>What is an elegant way to see if <code>description</code> contains the <code>last_name</code> on each row?</p>
  
  <p>I have a ugly </p>
  
  <hr>
  
  <pre><code>for i in range(0,len(df0)):
      df0['last_name_position'].loc[i] = \ 
          df0['description'].loc[i].find(df0['last_name'].loc[i])
  </code></pre>
  
  <hr>
  
  <p>running.</p>
  
  <p>This is basically the same task as 
  <a href="https://exceljet.net/formula/cell-contains-specific-text" rel="nofollow noreferrer">https://exceljet.net/formula/cell-contains-specific-text</a></p>