title: How to replace a Word in DF Column with another Word using Python -without including the substring
body: <p>I am trying to achieve the functionality of <strong>SAS TRANWRD</strong>  Function in Python to replace a <strong>'WORD'</strong> with another <strong>'WORD'.</strong></p>
  <p>I have tried using <strong>str.replace</strong> and <strong>replace</strong> method available in Python but these methods are <em>also replacing the SUBSTRING</em> in addition to replacing the word.</p>
  <p>Code:</p>
  <pre><code>DICT1 = {'NZ':'NEW ZEALAND'}
  
  for k,v in DICT1.items():
      df['COL1'] = df['COL1'].str.replace(k,v)
  </code></pre>
  <p>e.g.:</p>
  <pre><code>NZ COMPANY LIMITED --&gt; NEW ZEALAND COMPANY LIMITED - *(Expected)*
  
  GONZU ENTERPRISE --&gt; GONEW ZEALANDU ENTERPRISE - *(Unexpected)*
  </code></pre>
  <p>In SAS this issue is taken care because TRANWRD Function only replaces the word after finding the space boundaries.</p>
  <p>Can someone help how to achieve the similar functionality in Python ?</p>