Run ❯
Get your
own Python
server
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
import pandas as pd data = { "firstname": ["Sally", "Mary", "John"], "age": [50, 40, 30] } df = pd.DataFrame(data) print(df.keys())
Index(['firstname', 'age'], dtype='object')