Reputation: 11
How to replace a part of a string in Python or Pandas?
"xxsffsfdewetczxCATINTHEHATxxxxxxxxDrSeussfggfhgfh"
anything like the excel function (CATINTHEHATDrSeuss) to replace the whole string and just keep those two sentences, Thanks
Upvotes: 0
Views: 156
Reputation: 799
As mentioned here: https://www.tutorialspoint.com/python/string_replace.htm
str.replace(old, new[, max])
Upvotes: 1