Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas .replace multiple values in column

df['column name'] = df['column name'].replace(['1st old value','2nd old value',...],['1st new value','2nd new value',...])
Source by datatofish.com #
 
PREVIOUS NEXT
Tagged: #pandas #multiple #values #column
ADD COMMENT
Topic
Name
9+6 =