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