title: Pandas dataframe apply function to column strings based on other column value
body: <p>I would like to remove all instance of the string in col 'B' from col 'A', like so:</p>
  
  <pre><code>col A                 col B    col C
  1999 toyota camry     camry    1999 toyota 
  2003 nissan pulsar    pulsar   20013 nissan
  </code></pre>
  
  <p>How would I do this using pandas? If it was a fixed value (non-dependent on another column), I would use:</p>
  
  <pre><code>df['col C'] = df['col A'].str.replace('value-to-replace','')
  </code></pre>