title: python to_replace string NOT equal to a value?
body: <p>I understand to replace a string in a column would simply be:</p>
  
  <pre><code>df['surf'].replace(to_replace='Grass', value='Turf')
  </code></pre>
  
  <p>This replaces all the values of 'Grass' with 'Turf' in my column. But I want the opposite of that. I've tried to look up using != or ~, but haven't gotten that to work. </p>
  
  <p>What if I want all the values NOT 'Grass' to be replaced with 'Turf'</p>
  
  <p>Edit: I should add, I can do it with:</p>
  
  <pre><code>df.loc[df['surf'] != 'Grass', 'surf'] = 'Turf'
  </code></pre>
  
  <p>but was wondering if there was a way with the <code>.replace</code></p>