Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

replace word in column pandas lambda

df = df.apply(lambda x: 'Replacement Word' if 'Word to Replace' in x else x)
 
PREVIOUS NEXT
Tagged: #replace #word #column #pandas #lambda
ADD COMMENT
Topic
Name
5+2 =