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)
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)