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')
Source by pandas.pydata.org #
PREVIOUS
NEXT
Tagged:
#replacing
#values
#pandas
#dataframe
ADD COMMENT
Topic
COMMENT
Name
1+3 =
Submit