Home > Enterprise >  How to replace value in a column of dataframe python?
How to replace value in a column of dataframe python?

Time:07-02

How can i find value "100 e pìu" in age column and replace it by 100 ?This is a few rows of dataset

CodePudding user response:

You can redefine column Age with new one, where values are replaced already:

df.Age = df.Age.replace('100 e più', 100)
  • Related