Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

replace value pandas df

# this will replace "Boston Celtics" with "Omega Warrior"
df.replace(to_replace ="Boston Celtics",
                 value ="Omega Warrior")
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #replace #pandas #df
ADD COMMENT
Topic
Name
7+6 =