DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
replacing values in pandas dataframe
df['coloum'] = df['coloum'].replace(['value_1','valu_2'],'new_value')
PREVIOUS
NEXT
Tagged:
#replacing
#values
#pandas
#dataframe
ADD COMMENT
Topic
COMMENT
Name
8+1 =
Submit