title: Replace part of a string (column name) in Python or Pandas?
body: <p>How to replace a part of a string in Python or Pandas? </p>
  
  <pre><code>"xxsffsfdewetczxCATINTHEHATxxxxxxxxDrSeussfggfhgfh"
  </code></pre>
  
  <p>anything like the excel function (<em>CATINTHEHAT</em>DrSeuss) to replace the whole string and just keep those two sentences, 
  Thanks</p>