Solution with replace by dictionary:

df['prod_type'] = df['prod_type'].replace({'respon':'responsive', 'r':'responsive'})
print (df)
    prod_type
0  responsive
1  responsive
2  responsive
3  responsive
4  responsive
5  responsive
6  responsive

If need set all values in column to some string:

df['prod_type'] = 'responsive' 
Answer from jezrael on Stack Overflow
๐ŸŒ
Pandas
pandas.pydata.org โ€บ docs โ€บ reference โ€บ api โ€บ pandas.Series.str.replace.html
pandas.Series.str.replace โ€” pandas 3.0.5 documentation
Method to replace occurrences of a substring with another substring. ... Extract substrings using a regular expression. ... Find all occurrences of a pattern or regex in each string.
๐ŸŒ
Pandas
pandas.pydata.org โ€บ docs โ€บ reference โ€บ api โ€บ pandas.DataFrame.replace.html
pandas.DataFrame.replace โ€” pandas 3.0.5 documentation
Value to replace any values matching to_replace with. For a DataFrame a dict of values can be used to specify which value to use for each column (columns not in the dict will not be filled). Regular expressions, strings and lists or dicts of such objects are also allowed.
๐ŸŒ
Note.nkmk.me
note.nkmk.me โ€บ home โ€บ python โ€บ pandas
pandas: Replace values in DataFrame and Series with replace() | note.nkmk.me
January 17, 2024 - In pandas, the replace() method allows you to replace values in DataFrame and Series. It is also possible to replace parts of strings using regular expressions (regex). pandas.DataFrame.replace โ€” pan ...
๐ŸŒ
Spark By {Examples}
sparkbyexamples.com โ€บ home โ€บ pandas โ€บ pandas replace substring in dataframe
Pandas Replace Substring in DataFrame - Spark By {Examples}
June 6, 2025 - You can find how to replace substrings in a pandas DataFrame column using the replace() method with lambda functions. This versatile method allows you to
๐ŸŒ
Spark By {Examples}
sparkbyexamples.com โ€บ home โ€บ pandas โ€บ how to replace string in pandas dataframe
How to Replace String in Pandas DataFrame - Spark By {Examples}
June 13, 2025 - In pandas, to replace a string in the DataFrame column, you can use either the replace() function or the str.replace() method along with lambda methods.
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ pandas โ€บ python-pandas-series-str-replace-to-replace-text-in-a-series
Python | Pandas Series.str.replace() to replace text in a series - GeeksforGeeks
July 11, 2025 - Before calling .replace() on a Pandas series, .str has to be prefixed in order to differentiate it from Python's default replace method. Syntax: Series.str.replace(pat, repl, n=-1, case=None, regex=True) Parameters: pat: string or compiled regex to be replaced repl: string or callable to replace instead of pat n: Number of replacements to make in a single string, default is -1 which means all.
๐ŸŒ
Programiz
programiz.com โ€บ python-programming โ€บ pandas โ€บ methods โ€บ series-str-replace
Pandas str.replace() (With Examples)
The str.replace() method is used to replace a substring within each string element of a Series with another string. The str.replace() method in Pandas is used to replace a substring within each string element of a Series with another string.
Find elsewhere
๐ŸŒ
Statology
statology.org โ€บ home โ€บ how to use str.replace in pandas (with examples)
How to Use str.replace in Pandas (With Examples)
April 11, 2024 - This tutorial explains how to use the str.replace function in pandas, including several examples.
๐ŸŒ
Vultr Docs
docs.vultr.com โ€บ python โ€บ third-party โ€บ pandas โ€บ Series โ€บ str โ€บ replace
Python Pandas Series str replace() - Replace Substring | Vultr Docs
November 26, 2024 - Use the replace() method to target and replace specific substrings. ... import pandas as pd data = pd.Series(['foo', 'bar', 'baz', 'foobar']) modified_data = data.str.replace('foo', 'new') print(modified_data) Explain Code
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ data analysis โ€บ python-pandas-dataframe-replace
Python | Pandas dataframe.replace() - GeeksforGeeks
Pandas dataframe.replace() function is used to replace a string, regex, list, dictionary, series, number, etc. from a Pandas Dataframe in Python.
Published: July 11, 2025
๐ŸŒ
Pandas
pandas.pydata.org โ€บ docs โ€บ dev โ€บ reference โ€บ api โ€บ pandas.Series.str.replace.html
pandas.Series.str.replace โ€” pandas documentation
Method to replace occurrences of a substring with another substring. ... Extract substrings using a regular expression. ... Find all occurrences of a pattern or regex in each string.
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ replace-characters-in-strings-in-pandas-dataframe
Replace Characters in Strings in Pandas DataFrame - GeeksforGeeks
July 23, 2025 - Example 1: The following program is to replace a character in strings for the entire dataframe. ... # import pandas import pandas as pd data = {'Student_Full_Name': ['Mukul_Jatav', 'Rahul_Shukla', 'Robin_Singh', 'Mayank_Sharma', 'Akash_Verma'], 'Father_Full_name': ['Mukesh_Jatav', 'Siddhart_Shukla', 'Rohit_Singh', 'Sunil_Sharma', 'Rajesh_Verma'] } # create an dataframe df = pd.DataFrame(data, columns=['Student_Full_Name', 'Father_Full_name']) # print dataframe print(" original dataframe \n", df) # replace '_' with '-' df = df.replace('_', '+', regex=True) # print dataframe print(" After replace character \n", df)
๐ŸŒ
Note.nkmk.me
note.nkmk.me โ€บ home โ€บ python โ€บ pandas
pandas: Handle strings (replace, strip, case conversion, etc.) | note.nkmk.me
April 23, 2022 - You can use various methods with the string accessor (str.xxx()) to handle (replace, strip, etc.) strings of pandas.Series (= a column or row of pandas.DataFrame). Series - String handling โ€” pandas 1 ...
๐ŸŒ
Stack Overflow
stackoverflow.com โ€บ questions โ€บ 28986489 โ€บ how-to-replace-text-in-a-string-column-of-a-pandas-dataframe
python - How to replace text in a string column of a Pandas dataframe? - Stack Overflow
I have a column in my dataframe like this: range "(2,30)" "(50,290)" "(400,1000)" ... and I want to replace the , comma with - dash. I'm currently using this method ...
๐ŸŒ
w3resource
w3resource.com โ€บ pandas โ€บ series โ€บ series-str-replace.php
Pandas Series: str.replace() function - w3resource
May 20, 2026 - Example - When pat is a string and regex is False, every pat is replaced with repl as with str.replace(): ... import numpy as np import pandas as pd pd.Series(['f.n', 'fog', np.nan]).str.replace('f.', 'bu', regex=False)
๐ŸŒ
Saturn Cloud
saturncloud.io โ€บ blog โ€บ how-to-replace-strings-with-numbers-in-python-pandas-dataframe
How to Replace Strings with Numbers in Python Pandas Dataframe | Saturn Cloud Blog
May 1, 2026 - The most common methods are the replace() method, the map() method, and the astype() method. The method you choose depends on the specific requirements of your analysis or modeling task.
๐ŸŒ
Medium
medium.com โ€บ data-science โ€บ an-easy-way-to-replace-values-in-a-pandas-dataframe-2826bd34e59a
An Easy Way to Replace Values in a Pandas DataFrame | by Byron Dolon | TDS Archive | Medium
July 25, 2021 - PYTHON An Easy Way to Replace Values in a Pandas DataFrame Using built-in Pandas methods for advanced data processing and string manipulation The Pandas library is widely used as a data processing โ€ฆ
๐ŸŒ
DataScience Made Simple
datasciencemadesimple.com โ€บ home โ€บ replace() function in pandas โ€“ replace a string in dataframe python
replace() function in pandas - replace a string in dataframe python - DataScience Made Simple
November 15, 2019 - replace() Function in pandas replaces a string or substring in a column of a dataframe in python with an alternative string. example of replace() in pandas
๐ŸŒ
datagy
datagy.io โ€บ home โ€บ pandas tutorials โ€บ pandas dataframes โ€บ pandas replace() โ€“ replace values in pandas dataframe
Pandas replace() - Replace Values in Pandas Dataframe โ€ข datagy
March 2, 2023 - In this post, youโ€™ll learn how to use the Pandas .replace() method to replace data in your DataFrame. The Pandas DataFrame.replace() method can be used to replace a string, values, and even regular expressions (regex) in your DataFrame.