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

    159 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 …

  2. 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 …

  3. 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 …

  4. 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.

  5. Remap values in pandas column with a dict, preserve NaNs

    598 map can be much faster than replace If your dictionary has more than a couple of keys, using map can be much faster than replace. There are two versions of this approach, depending on …

  6. 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?

  7. Replace substring with another substring C++ - Stack Overflow

    How could I replace a substring in a string with another substring in C++, what functions could I use?

  8. How to replace specific values in a oracle database column?

    I looked at the search results and found ones that use replace to get values from a dual table. I am looking to update the table as opposed to get values.

  9. Pyspark replace strings in Spark dataframe column

    The function withColumn is called to add (or replace, if the name exists) a column to the data frame. The function regexp_replace will generate a new column by replacing all substrings that …

  10. How to Replace Multiple Characters in SQL? - Stack Overflow

    This is based on a similar question How to Replace Multiple Characters in Access SQL? I wrote this since sql server 2005 seems to have a limit on replace() function to 19 replacements …