Run ❯
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
import pandas as pd data = { "name": ["Bill", "Bob", "Betty"], "age": [50, 50, 30], "qualified": [True, False, False] } df = pd.DataFrame(data) newdf = df.replace(50, 60) print(newdf)
name age qualified 0 Bill 60 True 1 Bob 60 False 2 Betty 30 False