About 1,180,000 results
Open links in new tab
  1. Replace multiple characters in one replace call - Stack Overflow

    160 If you want to replace multiple characters you can call the String.prototype.replace() with the replacement argument being a function that gets called for each match. All you need is an object …

  2. Replace multiple substrings in a Pandas series with a value

    Add the keyword argument regex=True to Series.replace() (not Series.str.replace) This does two things actually: It changes your replacement to regex replacement, which is much more powerful but you …

  3. How do I replace all occurrences of a string? - Stack Overflow

    When replacing all occurrences of aba in ababa with ca, which result do you expect? caba? abca? cca?

  4. How to replace all occurrences of a character in string?

    What is the effective way to replace all occurrences of a character with another character in std::string?

  5. How to replace multiple substrings of a string? - Stack Overflow

    After some benchmarking on using replace several times vs regex replacement on a string of increasing length by power of 2 with 100 replacements added, it seems that on my computer this method is the …

  6. How to use python-docx to replace text in a Word document and save

    Jul 18, 2014 · If you replace the entire text of a paragraph, that will remove any character-level formatting, like a word or phrase in bold or italic. By the way, the code from @wnnmaw's answer is …

  7. python - Renaming column names in Pandas - Stack Overflow

    Setup 1 To focus on the need to rename of replace column names with a pre-existing list, I'll create a new sample dataframe df with initial column names and unrelated new column names.

  8. Multiple REPLACE function in Oracle - Stack Overflow

    The accepted answer to how to replace multiple strings together in Oracle suggests using nested REPLACE statements, and I don't think there is a better way. If you are going to make heavy use of …

  9. python - Find and replace string values in list - Stack Overflow

    You'll need to complete a few actions and gain 15 reputation points before being able to upvote. Upvoting indicates when questions and answers are useful. What's reputation and how do I get it? …

  10. Replacing blank values (white space) with NaN in pandas

    I want to find all values in a Pandas dataframe that contain whitespace (any arbitrary amount) and replace those values with NaNs. Any ideas how this can be improved? Basically I want to turn thi...