Run ❯
Get your
own Python
server
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
import pandas as pd data = { "name": ["Sally", "Mary", "John"], "qualified": [True, False, False] } df = pd.DataFrame(data) df.insert(1, "age", [50, 40, 30]) print(df)
name age qualified 0 Sally 50 True 1 Mary 40 False 2 John 30 False