Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

panda replace row values based on condition in some existing column

df['column'].mask(df['column'] == 'original_value', new_value, inplace=True)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #panda #replace #row #values #based #condition #existing #column
ADD COMMENT
Topic
Name
5+8 =