Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas replace string with another string

df['prod_type'] = df['prod_type'].replace({'respon':'responsive', 'r':'responsive'})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pandas #replace #string #string
ADD COMMENT
Topic
Name
7+4 =