Run ❯
Get your
own Python
server
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
import pandas as pd data = { "age": [16, 14, 10], "qualified": [True, True, True] } df = pd.DataFrame(data) newdf = df.assign(name = ["Emil", "Tobias", "Linus"]) print(newdf)
age qualified name 0 16 True Emil 1 14 True Tobias 2 10 True Linus