DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
2+9 =
Submit