Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

replace value in dataframe

# 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 #dataframe
ADD COMMENT
Topic
Name
7+8 =