top of page
Search

Pandas Part 7

How to replace values in Data Frame

  • Values in a data Frame can be replaced by using replace() method (DataFrame.replace())

  • replace() method will replace the values from the data frame to specific values

  • we can replace single or multiple values at a time by using replace method

Example 1

** replaced "GOOGL" value from tickers column to "GOGL"

13 views0 comments

Related Posts

bottom of page