Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

replace value in 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 #df
ADD COMMENT
Topic
Name
8+6 =