DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
Replace Specific Characters in Columns
df.columns = df.columns.str.replace('old_char', 'new_char')
Source by www.statology.org #
PREVIOUS
NEXT
Tagged:
#Replace
#Specific
#Characters
#Columns
ADD COMMENT
Topic
COMMENT
Name
7+8 =
Submit