Search
 
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
Name
6+7 =